Skip to content

Commit

Permalink
Merge pull request #531 from dungsil/strict-devtools
Browse files Browse the repository at this point in the history
fix: devtools being blocked in strict mode
  • Loading branch information
Baroshem authored Oct 8, 2024
2 parents 6005b46 + 591e509 commit 9a2e4df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/defaultConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'"],
Expand Down

0 comments on commit 9a2e4df

Please sign in to comment.