No 'Access-Control-Allow-Origin' header is present upon Ionic2 http post request

前端 未结 2 847
孤城傲影
孤城傲影 2020-12-06 03:42

This is my full code...

this.http.post(link, data, { headers: headers })
   .map(res => res.json())
   .subscribe(data => {
       this.data.response          


        
2条回答
  •  再見小時候
    2020-12-06 04:22

    Download the Allow-Control-Allow-Origin application from google chrome. Enable the CORS in the application installed and execute your code. This will temporarily allow the CORS in your browser.

提交回复
热议问题