diff --git a/resources/web/code-web.js b/resources/web/code-web.js index 8ca70cd77fe..f4e97df0c60 100644 --- a/resources/web/code-web.js +++ b/resources/web/code-web.js @@ -46,7 +46,6 @@ const args = minimist(process.argv, { 'verbose', 'wrap-iframe', 'enable-sync', - 'trusted-types' ], string: [ 'scheme', @@ -63,7 +62,6 @@ if (args.help) { 'yarn web [options]\n' + ' --no-launch Do not open VSCode web in the browser\n' + ' --wrap-iframe Wrap the Web Worker Extension Host in an iframe\n' + - ' --trusted-types Enable trusted types (report only)\n' + ' --enable-sync Enable sync by default\n' + ' --scheme Protocol (https or http)\n' + ' --host Remote host\n' + @@ -435,12 +433,10 @@ async function handleRoot(req, res) { .replace('{{WORKBENCH_AUTH_SESSION}}', () => authSessionInfo ? escapeAttribute(JSON.stringify(authSessionInfo)) : '') .replace('{{WEBVIEW_ENDPOINT}}', ''); - - const headers = { 'Content-Type': 'text/html' }; - if (args['trusted-types']) { - headers['Content-Security-Policy-Report-Only'] = 'require-trusted-types-for \'script\';'; - } - + const headers = { + 'Content-Type': 'text/html', + 'Content-Security-Policy': 'require-trusted-types-for \'script\';' + }; res.writeHead(200, headers); return res.end(data); }