Nginx跨域问题求帮助

bug反馈 未结 2 118
老任
老任 VIP3 2021-09-23 14:13:08
收藏
产品:vue 版本:v8.3
根据官网文档来部署,发现以下问题 img[/userfiles/fly/072ddbe1ea594f9798ded1e9e2488a74/files/1632377494833.] 后端跨域配置也加了 img[/userfiles/fly/072ddbe1ea594f9798ded1e9e2488a74/files/1632377566268.] 能否把你们测试站的nginx配置发我一份参考一下,谢谢!
回帖
  • 2021-09-23 16:38:04   最后修改:2021-09-23 16:39:15
    [pre] server { listen 80; server_name 47.93.149.xxxx demo.jeeplus.org; client_max_body_size 100m; location ^~ /jeeplus-vue { proxy_pass http://127.0.0.1:8090/jeeplus-vue; proxy_set_header Host 127.0.0.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location ^~/userfiles { proxy_pass http://127.0.0.1:8090/jeeplus-vue/userfiles; proxy_set_header Host 127.0.0.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location / { root /usr/share/nginx/html/web; index index.html index.htm; } location /h5 { alias /usr/share/nginx/html/h5; index index.html index.htm; } } [/pre]
    0 回复
  • 2021-10-03 22:39:51
    我记得在后台还新增了一个类(QQ群里面文件有位好人上传的) \jeeplus-platform\jeeplus-admin\src\main\java\com\jeeplus\modules\sys\security\CrosConfig.java
    0 回复