]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
add unsafe-inline and wasm-unsafe-eval
authorCameron Otsuka <cameron@otsuka.haus>
Tue, 17 Mar 2026 04:17:29 +0000 (21:17 -0700)
committerCameron Otsuka <cameron@otsuka.haus>
Tue, 17 Mar 2026 04:17:29 +0000 (21:17 -0700)
astro.config.mjs

index 7fdec82..97e077d 100644 (file)
@@ -73,8 +73,15 @@ export default defineConfig({
         "object-src 'none'",
         "base-uri 'self'",
       ],
+      styleDirective: {
+        resources: ["'self'", "'unsafe-inline'"],
+      },
       scriptDirective: {
-        resources: ["'self'", 'https://ph.otsuka.systems'],
+        resources: [
+          "'self'",
+          'https://ph.otsuka.systems',
+          "'wasm-unsafe-eval'",
+        ],
         strictDynamic: false,
       },
     },