Skip to content

HTTP2 Pseudo headers get rejected by Remix [\w Vite] #7867

@kazdegroot

Description

@kazdegroot

What version of Remix are you using?

2.2.0

Are all your remix dependencies & dev-dependencies using the same version?

  • Yes

Steps to Reproduce

  1. Use Vite plugin
  2. Enable https for Vite, by setting { server: { https: true } }
  3. Make sure there is something like a cert configured; e.g. using vite-plugin-mkcert
  4. Start dev server
  5. Visit site

Expected Behavior

Site works

Actual Behavior

Site throws the following error:

Unexpected Server Error

TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token [":authority"]

HTTPS in Vite will include HTTP2 by default, but also setting the server.proxy option (e.g. to {}), will fallback to just TLS. Everything works fine then.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions