fix(webpack.config.js): specify Host header in the webpack proxy pass
Without changing the 'Host' header, a standalone instance we use for jitsi dev work will generate: config.websocket = 'wss://localhost:8080/xmpp-websocket' This was fine with BOSH, but a Websocket will not connect. With this change it will be(based on the default devServerProxyTarget): config.websocket = 'wss://alpha.jitsi.net/xmpp-websocket'
This commit is contained in:
parent
c05b4a43e8
commit
6c3a5793b4
|
@ -38,7 +38,10 @@ const config = {
|
|||
'/': {
|
||||
bypass: devServerProxyBypass,
|
||||
secure: false,
|
||||
target: devServerProxyTarget
|
||||
target: devServerProxyTarget,
|
||||
headers: {
|
||||
'Host': new URL(devServerProxyTarget).host
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue