Home  >  Q&A  >  body text

nginx configuration problem

I want to configure a spa development environment. Since the front and back ends are separated, I want to configure an nginx reverse proxy. After struggling for a long time, I still failed.
The function I need to implement: the front-end can get the data from the back-end without crossing domains.
This is the default


fe:


be:

Please give me some guidance.

phpcn_u1582phpcn_u15822713 days ago365

reply all(1)I'll reply

  • 某草草

    某草草2017-05-16 17:19:26

    Cross-domain issues have nothing to do with which reverse proxy server is used. Add Access-Control-Allow-Origin to the response header
    Please refer to this article http://luojinping.com/2015/10/29/%E8% B7%...

    reply
    0
  • Cancelreply