You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
子应用(Vite+vue3)部署在ip1上的nginx,基座应用(VUE3+Vite如果在本地开发环境运行,可以正常访问子应用,但是如果基座应用也发布到Nginx,会出现如下问题: Access to XMLHttpRequest at 'http://ip1:6010/xxxx/yyy/menu?__rnd_axios=1734185969581' from origin 'http://ip1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
子应用(Vite+vue3)部署在ip1上的nginx,基座应用(VUE3+Vite如果在本地开发环境运行,可以正常访问子应用,但是如果基座应用也发布到Nginx,会出现如下问题:
Access to XMLHttpRequest at 'http://ip1:6010/xxxx/yyy/menu?__rnd_axios=1734185969581' from origin 'http://ip1' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Nginx配置如下:
`
listen 6010;
server_name ip1;
`
求解
The text was updated successfully, but these errors were encountered: