From: Cameron Otsuka Date: Tue, 17 Mar 2026 04:17:29 +0000 (-0700) Subject: add unsafe-inline and wasm-unsafe-eval X-Git-Url: https://git.otsuka.systems/?a=commitdiff_plain;h=085d8bbd7919efc09fe659575e726abd86703297;p=cotsuka.github.io add unsafe-inline and wasm-unsafe-eval --- diff --git a/astro.config.mjs b/astro.config.mjs index 7fdec82..97e077d 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -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, }, },