nginx configuration problem
phpcn_u1582
phpcn_u1582 2017-05-16 17:17:26
0
1
360

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_u1582
phpcn_u1582

reply all(1)
某草草

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%...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!