2016-04-23 69 views
0

我试图从http://example.com/fonts请求字体文件 - 但是作为我的MOD的结果改写请求被发送到https:www.example.com/fonts跨源请求错误

由于这一点,我得到的结果以下错误:

Font from origin 'https//example.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 'https//www.example.com' is therefore not allowed access.

(请注意,我不得不删除“:”因为问题的参数从https)

我不希望允许跨起源请求。如果可能的话,我可以如何做到这一点?

回答