Angular CORS request blocked

前端 未结 5 429
独厮守ぢ
独厮守ぢ 2020-12-14 23:22

I am trying to connect my Angular app with a simple REST server on express. The server only sends json data in reply to request. To add CORS suppor

5条回答
  •  暖寄归人
    2020-12-15 00:20

    Allow Server side that you hit from angular JS, in that case you need to allow http://localhost:8888/ because that is your server side URL, angular run on http://localhost:4200. please check the Http. then it work

提交回复
热议问题