Add Plausible analytics with JSON Upload custom event.
Load tagged-events from plausible.elpatron.me on all pages, allow it in CSP, and track successful save uploads with import status. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-2
@@ -48,10 +48,10 @@ def configure_app(flask_app: Flask) -> None:
|
||||
response.headers["Referrer-Policy"] = "strict-origin-when-cross-origin"
|
||||
response.headers["Content-Security-Policy"] = (
|
||||
"default-src 'self'; "
|
||||
"script-src 'self'; "
|
||||
"script-src 'self' https://plausible.elpatron.me; "
|
||||
"style-src 'self' 'unsafe-inline'; "
|
||||
"img-src 'self' data:; "
|
||||
"connect-src 'self'; "
|
||||
"connect-src 'self' https://plausible.elpatron.me; "
|
||||
"frame-ancestors 'self'"
|
||||
)
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user