CORS - Cross-Domain AJAX Without JSONP By Allowing Origin On Server

后端 未结 3 1891
无人共我
无人共我 2020-11-30 13:13

I have two separate apps on the same server, with the EmberJS one trying to do cross-domain calls to my backend API.

I set up my backend API to allow cross-domain re

3条回答
  •  再見小時候
    2020-11-30 13:38

    In cross-domain environment I suggest to use JSONP instead CORS becase many free hosts does not support cross-domain CORS. It is detailed in working examples - both JSONP and CORS.

提交回复
热议问题