nginx跨域访问字体等静态文件
Access to font at 'xx' from origin 'xx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.就如同上面图片中显示的,它提示我们有跨站攻击的风险,因此不允许这样访问。因为我的网站里面只提示了字体
Access to font at 'xx' from origin 'xx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.就如同上面图片中显示的,它提示我们有跨站攻击的风险,因此不允许这样访问。因为我的网站里面只提示了字体