finally have some more fixes for the styling

This commit is contained in:
Chris Kruining 2024-12-02 13:08:23 +01:00
parent ecf7b0df20
commit aee0523adc
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
6 changed files with 28 additions and 36 deletions

View file

@ -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,