5xx or 4xx error with “No 'Access-Control-Allow-Origin' header is present”

后端 未结 2 906
不思量自难忘°
不思量自难忘° 2020-11-22 15:51

My browser is logging the following message in the devtools console:

No \'Access-Control-Allow-Origin\' header is present on the requested resource.…

2条回答
  •  孤城傲影
    2020-11-22 16:18

    I had the same issue, the server doesn't support cross origin request. The API developer should change Access-Control-Allow-Origin to * (means from any origin).sometimes jsonp request will bypass, if its not working, google chrome provides plugins to change origin plugin

提交回复
热议问题