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

后端 未结 18 2941
北海茫月
北海茫月 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 05:59

    You may make it work without modifiying the server by making the broswer including the header Access-Control-Allow-Origin: * in the HTTP OPTIONS' responses.

    In Chrome, use this extension. If you are on Mozilla check this answer.

提交回复
热议问题