]> git.otsuka.systems Git - cotsuka.github.io/commitdiff
remove astro csp
authorCameron Otsuka <cameron@otsuka.haus>
Tue, 17 Mar 2026 04:27:18 +0000 (21:27 -0700)
committerCameron Otsuka <cameron@otsuka.haus>
Tue, 17 Mar 2026 04:27:18 +0000 (21:27 -0700)
astro.config.mjs

index 97e077d83b7d4d13f2810f8e397febc9c5ebe283..6186176a71ff90a5e2f9d7b9bb8e390c83a41c3c 100644 (file)
@@ -64,28 +64,7 @@ export default defineConfig({
     },
     syntaxHighlight: 'prism',
   },
-  security: {
-    csp: {
-      directives: [
-        "default-src 'self'",
-        "connect-src 'self' https://ph.otsuka.systems",
-        'frame-src https://www.youtube-nocookie.com',
-        "object-src 'none'",
-        "base-uri 'self'",
-      ],
-      styleDirective: {
-        resources: ["'self'", "'unsafe-inline'"],
-      },
-      scriptDirective: {
-        resources: [
-          "'self'",
-          'https://ph.otsuka.systems',
-          "'wasm-unsafe-eval'",
-        ],
-        strictDynamic: false,
-      },
-    },
-  },
+
   vite: {
     build: {
       rollupOptions: {