[问题] 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