Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用ruoyi构建demo 子应用 出现跨域问题 #1280

Open
prenukes opened this issue Jul 5, 2024 · 7 comments
Open

用ruoyi构建demo 子应用 出现跨域问题 #1280

prenukes opened this issue Jul 5, 2024 · 7 comments
Labels

Comments

@prenukes
Copy link

prenukes commented Jul 5, 2024

问题描述

问题的具体描述

复现步骤

  1. 基座 ruoyi-vue3 vite 子应用 ruoyi-vue3 vite
  2. 在子应用配置跨域
image 3. 基座配置 image

结果:
image
image

@prenukes
Copy link
Author

prenukes commented Jul 5, 2024

基座地址 是 localhost:81
子应用 82

@bailicangdu bailicangdu added the Need Reproduction 需要复现步骤 label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

Hello @prenukes. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @prenukes, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

@prenukes
Copy link
Author

prenukes commented Jul 8, 2024

@bailicangdu bailicangdu added vite and removed Need Reproduction 需要复现步骤 labels Jul 8, 2024
@bailicangdu
Copy link
Member

vite 5.3.0-5.3.2版本的proxy代理有问题,将vite升级到最新版本5.3.3即可,vitejs/vite#17563

@wdzyy
Copy link

wdzyy commented Jul 11, 2024

vite 5.3.0-5.3.2版本的proxy代理有问题,将vite升级到最新版本5.3.3即可,vitejs/vite#17563

也有同样的问题。试了这个方法,也不行。

@bailicangdu
Copy link
Member

bailicangdu commented Jul 11, 2024

vite 5.3.0-5.3.2版本的proxy代理有问题,将vite升级到最新版本5.3.3即可,vitejs/vite#17563

也有同样的问题。试了这个方法,也不行。

将代理放入基座中,配合disable-patch-request也可以解决

@JieleeJie
Copy link

配置disable-patch-request 可以解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants