当我访问我的应用程序时,在控制台中存在如下错误:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://my.system.com/my-system/assets/global/plugins/font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
虽然我在localhost上打开
如何解决问题?
谢谢
答案 0 :(得分:1)
在服务器上添加响应标头Access-Control-Allow-Origin : *
,主机http://my.system.com/my-system/assets/global/plugins/font-awesome/fonts/fontawesome-webfont.woff2?v=4.4.0.
将解决跨域请求问题。