Skip to content

fix(proxy): set host header for requests from HTTP2#21134

Merged
sapphi-red merged 2 commits into
vitejs:mainfrom
sapphi-red:fix/proxy-set-host-header-for-requests-from-http2
Dec 1, 2025
Merged

fix(proxy): set host header for requests from HTTP2#21134
sapphi-red merged 2 commits into
vitejs:mainfrom
sapphi-red:fix/proxy-set-host-header-for-requests-from-http2

Conversation

@sapphi-red
Copy link
Copy Markdown
Member

@sapphi-red sapphi-red commented Nov 18, 2025

Tries to fix, #21117 (upstream fix,: sagemathinc/http-proxy-3#43)

Tested with #21117 (comment) and it worked

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Nov 18, 2025

Open in StackBlitz

npm i https://pkg.pr.new/vite@21134

commit: 971fba8

@mschaefer-gresham
Copy link
Copy Markdown

Assuming I am using the correct version, it is not working for me.

package.json
image

yarn.lock
image

vite.config
image

headers in OnRedirectToIdentityProvider
image

@sapphi-red
Copy link
Copy Markdown
Member Author

Yes, that's the correct version. Then, unfortunately I run out of ideas here.

@sapphi-red sapphi-red closed this Nov 18, 2025
@sapphi-red sapphi-red deleted the fix/proxy-set-host-header-for-requests-from-http2 branch November 18, 2025 09:30
@sapphi-red sapphi-red restored the fix/proxy-set-host-header-for-requests-from-http2 branch November 26, 2025 06:21
@sapphi-red sapphi-red reopened this Nov 26, 2025
@sapphi-red sapphi-red added the p3-minor-bug An edge case that only affects very specific usage (priority) label Nov 26, 2025
@sapphi-red sapphi-red marked this pull request as ready for review November 26, 2025 06:28
@sapphi-red sapphi-red merged commit 098cd8d into vitejs:main Dec 1, 2025
19 checks passed
@sapphi-red sapphi-red deleted the fix/proxy-set-host-header-for-requests-from-http2 branch December 1, 2025 04:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

p3-minor-bug An edge case that only affects very specific usage (priority) trigger: preview

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants