Remove iframe around web worker in codespace case

This commit is contained in:
Alex Dima 2020-11-03 13:54:55 +01:00
parent 56b686f9fd
commit 796db55744
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -386,6 +386,10 @@ async function handleRoot(req, res) {
if (args['wrap-iframe']) {
webConfigJSON._wrapWebWorkerExtHostInIframe = true;
}
if (req.headers['x-forwarded-host']) {
// support for running in codespace => no iframe wrapping
delete webConfigJSON.webWorkerExtensionHostIframeSrc;
}
const authSessionInfo = args['github-auth'] ? {
id: uuid.v4(),