How to overcome “Access-Control-Allow-Origin” error when client talks to server

后端 未结 2 623
一向
一向 2021-01-21 09:56

So I\'m using a yeoman project from swiip called generator-gulp-angular - just do \"npm search gulp-angular\" and you\'ll see it.

Out of the box the client is running fr

2条回答
  •  余生分开走
    2021-01-21 10:33

    You have to setup a proxy server to forward your requests, setup a reverse proxy, or setup CORS on the back-end to allow the cross-origin request.

提交回复
热议问题