Access Control Allow Origin issue in Angular 2

前端 未结 5 833
心在旅途
心在旅途 2020-11-27 22:51

I have a problem with getting data from my node.js server.

The client side is:

    public getTestLines() : Observable {
    let hea         


        
5条回答
  •  日久生厌
    2020-11-27 23:26

    If this is going to be rest API => http://localhost:3003/get_testlines

    then use @CrossOrigin(origins = "*") to solve the cross domain issue

提交回复
热议问题