mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(core): allow ui unsafe inline script (#4497)
fix(core): all ui unsafe inline all ui unsafe inline
This commit is contained in:
parent
926da108e8
commit
5556a73b0a
1 changed files with 2 additions and 1 deletions
|
@ -80,7 +80,8 @@ export default function koaSecurityHeaders<StateT, ContextT, ResponseBodyT>(
|
|||
// Non-production environment allow "unsafe-eval" and "unsafe-inline" for debugging purpose
|
||||
scriptSrc: [
|
||||
"'self'",
|
||||
...conditionalArray(!isProduction && ["'unsafe-eval'", "'unsafe-inline'"]),
|
||||
"'unsafe-inline'",
|
||||
...conditionalArray(!isProduction && "'unsafe-eval'"),
|
||||
],
|
||||
connectSrc: ["'self'", tenantEndpointOrigin, ...developmentOrigins, ...appInsightsOrigins],
|
||||
// WARNING: high risk Need to allow self hosted terms of use page loaded in an iframe
|
||||
|
|
Loading…
Reference in a new issue