[問題] jsfiddle import font (.ttf)

作者: john110290 (KenMin)   2015-03-04 10:58:26
請問有人在jsfiddle 上掛別的字體嗎?
@font-face {
font-family: 'newFonrAAA';
src: url('//xxx.yyy/zzz.ttf');
}
但使用上會出現錯誤訊息
Font from origin 'http://xxx.yyy' has been blocked from loading by
Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header
is present on the requested resource. Origin 'http://fiddle.jshell.net' is
therefore not allowed access.
請問這怎麼搞定呢? 感謝!
作者: mmis1000 (秋月戀楓)   2015-03-04 12:12:00
要你的網址來源有設Access-Control-Allow-Origin才可以,像是dropbox之類就有,如果是你自己的站,就自己加吧
作者: john110290 (KenMin)   2015-03-04 12:57:00
原來如此! 有方向了感謝~

Links booklink

Contact Us: admin [ a t ] ucptt.com