You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Describe the bug
When Vite is in a noorigin context, like an iframe loaded from the
srcdoc
attribute, it passes a malformed url tonew WebSocket
.This results in an uncaught error that prevents scripts from executing.
Relevant code: https://github.com/vitejs/vite/blob/main/packages/vite/src/client/client.ts#L28
I intend to submit a patch to catch thrown errors when creating the WebSocket.
Reproduction
https://github.com/JoelEllis/vite-noorigin-mre
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: