We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8d79b commit 9de9bc4Copy full SHA for 9de9bc4
packages/vite/src/node/server/middlewares/proxy.ts
@@ -88,7 +88,9 @@ export function proxyMiddleware(
88
if (doesProxyContextMatchUrl(context, url)) {
89
const [proxy, opts] = proxies[context]
90
if (
91
- (opts.ws || opts.target?.toString().startsWith('ws:')) &&
+ (opts.ws ||
92
+ opts.target?.toString().startsWith('ws:') ||
93
+ opts.target?.toString().startsWith('wss:')) &&
94
req.headers['sec-websocket-protocol'] !== HMR_HEADER
95
) {
96
if (opts.rewrite) {
0 commit comments