Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

monograph: add report endpoint to connect-src content policy

Abdullah Atta337582ac70c3
diff --git a/apps/monograph/app/entry.server.tsx b/apps/monograph/app/entry.server.tsx
index c57f66656..6fa316d78 100644
--- a/apps/monograph/app/entry.server.tsx
+++ b/apps/monograph/app/entry.server.tsx
@@ -90,7 +90,7 @@ function getContentSecurityPolicy(nonce?: string) {
const connect_src =
process.env.NODE_ENV === "development"
? "'self' ws://localhost:*"
- : "'self'";
+ : "'self' https://notesnook.com/api/v1/reports/submit";
return (
`script-src ${script_src} 'strict-dynamic'; ` +