-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
Description
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
- Use Vite plugin
- Enable https for Vite, by setting
{ server: { https: true } }
- Make sure there is something like a cert configured; e.g. using
vite-plugin-mkcert
- Start dev server
- 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.
tobimeyer and ssorallen