How to enable Access-Control-Allow-Origin for angular 5/nodejs?

前端 未结 4 489
名媛妹妹
名媛妹妹 2021-01-20 16:43

Read many ways for including of \'Access-Control-Allow-Origin\' and none worked for me.

I use @angular/common/http module and external url as data source. by the att

4条回答
  •  伪装坚强ぢ
    2021-01-20 17:31

    Access-Control-Allow-Origin
    

    Is response header not request header. You must add this header to your resfull (server)

提交回复
热议问题