File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 7
7
"headers" : [
8
8
{
9
9
"key" : " content-security-policy" ,
10
- "value" : " default-src 'self'; style-src 'unsafe-inline' 'self'; frame-src 'none'; object-src 'none'; form-action 'none'; frame-ancestors 'none'"
10
+ "value" : " default-src 'self'; frame-src 'none'; object-src 'none'; form-action 'none'; frame-ancestors 'none'"
11
11
},
12
12
{ "key" : " x-content-type-options" , "value" : " nosniff" },
13
13
{ "key" : " x-frame-options" , "value" : " DENY" }
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ const cspNonce = randomBytes(8).toString('hex')
82
82
const csp = headers [ 'content-security-policy' ]
83
83
const devHeaders = {
84
84
...headers ,
85
- 'content-security-policy' : `${ csp } ; script-src 'nonce-${ cspNonce } ' 'self'` ,
85
+ 'content-security-policy' : `${ csp } ; script-src 'nonce-${ cspNonce } ' 'self'; style-src 'nonce- ${ cspNonce } ' 'self' ` ,
86
86
}
87
87
88
88
// see https://vitejs.dev/config/
You can’t perform that action at this time.
0 commit comments