Origin is not allowed by Access-Control-Allow-Origin

后端 未结 18 3736
北海茫月
北海茫月 2020-11-21 05:52

I\'m making an Ajax.request to a remote PHP server in a Sencha Touch 2 application (wrapped in PhoneGap).

The response from the server is the following:

18条回答
  •  南旧
    南旧 (楼主)
    2020-11-21 06:18

    If you're writing a Chrome Extension and get this error, then be sure you have added the API's base URL to your manifest.json's permissions block, example:

    "permissions": [
        "https://itunes.apple.com/"
    ]
    

提交回复
热议问题