fix: add analytics.manohargupta.com to CSP connect-src
Browser was blocking the POST to analytics.manohargupta.com/api/send with 'Failed to fetch' because the Content-Security-Policy connect-src only listed plausible.io (old analytics tool, now removed). - connect-src: replace plausible.io with analytics.manohargupta.com - script-src: remove plausible.io (no longer needed, Umami script is self-hosted) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
27b07a5cfc
commit
a89ab96a12
1 changed files with 2 additions and 2 deletions
|
|
@ -23,9 +23,9 @@ const nextConfig: NextConfig = {
|
||||||
{ key: "Content-Security-Policy", value:
|
{ key: "Content-Security-Policy", value:
|
||||||
"default-src 'self'; " +
|
"default-src 'self'; " +
|
||||||
"img-src 'self' data: https://*.r2.cloudflarestorage.com https://*.r2.dev; " +
|
"img-src 'self' data: https://*.r2.cloudflarestorage.com https://*.r2.dev; " +
|
||||||
"script-src 'self' 'unsafe-inline' 'unsafe-eval' https://plausible.io; " +
|
"script-src 'self' 'unsafe-inline' 'unsafe-eval'; " +
|
||||||
"style-src 'self' 'unsafe-inline'; " +
|
"style-src 'self' 'unsafe-inline'; " +
|
||||||
"connect-src 'self' https://llm.manohargupta.com https://plausible.io; " +
|
"connect-src 'self' https://llm.manohargupta.com https://analytics.manohargupta.com; " +
|
||||||
"font-src 'self' data:;"
|
"font-src 'self' data:;"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue