字体跨域问题【解决】

错误信息: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 '*';
}
相关文章
相关标签/搜索