字體跨域問題【解決】

錯誤信息:code

Font from origin 'http://timg.totour.com' 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://127.0.0.1:8080' is therefore not allowed access.io

解決:request

location ~* \.(eot|ttf|woff)$ {
   add_header Access-Control-Allow-Origin '*';
}
相關文章
相關標籤/搜索