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

[Bug] http proxy转发的Http头中origin参数问题 #10690

Closed
dayongxie opened this issue Mar 7, 2023 · 3 comments
Closed

[Bug] http proxy转发的Http头中origin参数问题 #10690

dayongxie opened this issue Mar 7, 2023 · 3 comments

Comments

@dayongxie
Copy link
Contributor

What happens?

我将代理转发到了django后台, 配置如下

proxy: {
    target: "http://127.0.0.1:8000",
    changeOrigin: true
}

post请求会将origin改为“http://127.0.0.1:8000/"
origin多了个符号斜杠'/', 导致django的跨域判断host和origin不一致

正常的Origin应该是不带/的吧

@github-actions
Copy link

github-actions bot commented Mar 7, 2023

由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 7, 2023
@fz6m
Copy link
Contributor

fz6m commented Mar 7, 2023

给最小复现看看。

@dayongxie
Copy link
Contributor Author

我已经另开了issue #10692
提交了pr #10699

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

No branches or pull requests

2 participants