fix(remix-dev/vite): remove http2 pseudo headers from internal request #8049
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #7867
I'm thinking this PR could help as a short term workaround for
@remix-run/web-fetch
Headers validation error.This might not be a mandatory since there is a simple user side workaround by setting
server: { proxy: {} }
in vite config.Also as I wrote in #7867 (comment), the removal of
@remix-run/web-fetch
polyfill would also make this workaround obsolete, so if remix team has a plan to remove automatic polyfills for newer node versions (this could be related? #7823), then this change will not be necessary.Please let me know if there's any concern with this approach.
Testing Strategy:
I verified the same patch fixes my reproduction hi-ogawa/remix-reproduction-7867#2