解决CORS跨域问题
控制台报错
GET https://s1.cdn-file.link/wp-content/themes/luxeritas/fonts/icomoon/fonts/icomoon.woff2 net::ERR_FAILED 200 (索引):131 Access to font at 'https://s1.cdn-file.link/wp-content/themes/luxeritas/fonts/icomoon/fonts/icomoon.woff' from origin 'https://xiaojiangshi.top' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. style.min.css:1
解决方法
在CDN(s1.cdn-file.link)上添加以下代码
Header set Access-Control-Allow-Origin "https://xiaojiangshi.top"
Discussion
New Comments
暂无评论。 成为第一个!