fix(typedserver): Add cross-origin security headers to element mode dev server

This commit is contained in:
2025-12-11 17:14:05 +00:00
parent 0bb76f32b8
commit 313362b795
3 changed files with 12 additions and 1 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@git.zone/tswatch',
version: '2.3.10',
version: '2.3.11',
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
}

View File

@@ -73,6 +73,10 @@ export class TsWatch {
port: 3002,
compression: true,
spaFallback: true,
securityHeaders: {
crossOriginOpenerPolicy: 'same-origin',
crossOriginEmbedderPolicy: 'require-corp',
},
});
const bundleAndReloadElement = async () => {