2016-04-23 96 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)

我不希望允許跨起源請求。如果可能的話,我可以如何做到這一點?

回答