From 591e509cdae403050298cc4783339a249c047211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EA=B1=B4=20=28Kim=20Younggeon=29?= Date: Mon, 30 Sep 2024 19:22:02 +0900 Subject: [PATCH] fix: devtools being blocked in strict mode --- src/defaultConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/defaultConfig.ts b/src/defaultConfig.ts index b04a5ad0..2abd5bc7 100644 --- a/src/defaultConfig.ts +++ b/src/defaultConfig.ts @@ -96,7 +96,7 @@ export const defaultSecurityConfig = (serverlUrl: string, strict: boolean) => { } if (strict) { - defaultConfig.headers.crossOriginEmbedderPolicy = 'require-corp' + defaultConfig.headers.crossOriginEmbedderPolicy = process.env.NODE_ENV === 'development' ? 'unsafe-none' : 'require-corp' defaultConfig.headers.contentSecurityPolicy = { 'base-uri': ["'none'"], 'default-src' : ["'none'"],