-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Labels
contributions-welcomeWe're not going to implement this ourselves, but we'll consider contributionsWe're not going to implement this ourselves, but we'll consider contributionsp3-edge-caseSvelteKit cannot be used in an uncommon waySvelteKit cannot be used in an uncommon way
Description
Describe the bug
Hello
If the ORIGIN environment variable is configured incorrectly, for example omitting the protocol, the server responds with a 400 Bad Request error.
While this is a configuration issue, returning a Bad Request may be misleading, since the HTTP request itself is not actually malformed. A more descriptive error message would greatly help with debugging and improve the developer experience.
Reproduction
Start node server with
ORIGIN=localhost:3000 node build/Logs
System Info
MacOsSeverity
annoyance
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
contributions-welcomeWe're not going to implement this ourselves, but we'll consider contributionsWe're not going to implement this ourselves, but we'll consider contributionsp3-edge-caseSvelteKit cannot be used in an uncommon waySvelteKit cannot be used in an uncommon way