我使用Django作爲Rest API和Angularjs的前端。 我已經在Django中設置了頭域,以便爲域(www.example.com)提供API訪問權限。我可以從我的系統(OS - MAC,瀏覽器:Firefox,Chrome,Safari,Android chrome,本地瀏覽器)中執行ajax調用。幾乎所有的。'訪問控制允許來源'不能在不同系統上工作
現在突然我得到這個錯誤,在特定的操作系統:
XMLHttpRequest cannot load http://www.apicalls.in/.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://www.example.com' is therefore not allowed access.
我在Windows 10的Chrome瀏覽器得到這個問題(這兩個操作系統都有相同的Chrome版本 - 46.x.x.x)。我無法理解這種行爲,因爲API與所有其他設備使用相同的瀏覽器正常工作。任何人都面臨過這個問題?