作者john110290 (KenMin)
看板Ajax
標題[問題] jsfiddle import font (.ttf)
時間Wed Mar 4 10:58:26 2015
請問有人在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.
請問這怎麼搞定呢? 感謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.211.32.194
※ 文章網址: https://webptt.com/m.aspx?n=bbs/Ajax/M.1425437908.A.B9E.html
1F:→ mmis1000: 要你的網址來源有設Access-Control-Allow-Origin 03/04 12:12
2F:→ mmis1000: 才可以,像是dropbox之類就有,如果是你自己的站,就自 03/04 12:12
3F:→ mmis1000: 己加吧 03/04 12:13
4F:→ john110290: 原來如此! 有方向了感謝~ 03/04 12:57