Loading... 在使用webpack中配置了代理。 秩序在nginx添加反代配置。 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; location /api { proxy_pass http://192.168.1.21/; } Last modification:May 29, 2019 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏