Escape characters not allowed by URL specs but not escaped by URL::toString
#10307
Open
7 tasks done
Labels
URL::toString
#10307
Describe the bug
Whe using vite in dev mode behind a proxy illegal characters in URL can lead to errors.
As an example Nuxt 3 uses [foo] as pattern for dynamic routes. During development url for modules aren't properly url-encoded.
Reproduction:
open stackblitz example and navigate to /test/id. In the browser network trace there is a request for /test/[id].vue which fails when used behind certain proxies.
nuxt/nuxt#15049
Reproduction
https://stackblitz.com/edit/github-tjxq2a-k3p4ab
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: