finally have some more fixes for the styling
This commit is contained in:
parent
ecf7b0df20
commit
aee0523adc
6 changed files with 28 additions and 36 deletions
|
@ -26,9 +26,8 @@ export default createHandler(({ nonce }) => {
|
|||
);
|
||||
}, event => {
|
||||
const nonce = crypto.randomUUID();
|
||||
const isDev = process.env.NODE_ENV === 'development';
|
||||
|
||||
const base = `'self' 'nonce-${nonce}' ${isDev ? `'unsafe-eval'` : ''}`;
|
||||
const base = `'self' 'nonce-${nonce}' 'unsafe-eval'`;
|
||||
|
||||
const policies = {
|
||||
default: base,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue