访问API时出现Ionic错误

时间:2017-11-03 16:07:20

标签: api ionic-framework ionic2

我尝试从Ionic访问API,但收到错误:

Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 503.

我已经尝试过使用JSONP(带回调)。

0 个答案:

没有答案