]> 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 7fdec82166ae91c58f70bba66dea7469e4e3616d..97e077d83b7d4d13f2810f8e397febc9c5ebe283 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,
       },
     },