From a1b8913c0decea9355e21b4a32ecad6871a587af Mon Sep 17 00:00:00 2001 From: z9fr Date: Sat, 6 Jan 2024 05:46:26 +0530 Subject: [PATCH] feat: added sentry --- src/lib.rs | 2 +- src/tmpl/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index b35a294..ddbde82 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,7 +43,7 @@ fn cache_header(_: &Response) -> Option { fn csp_header(_: &Response) -> Option { Some(header::HeaderValue::from_static( - "base-uri 'self'; default-src 'self' https://cdnjs.cloudflare.com https://unpkg.com/; report-uri https://z9fr.report-uri.com/r/d/csp/wizard; object-src 'none'" + "base-uri 'self'; default-src 'self' https://cdnjs.cloudflare.com https://unpkg.com/ https://js.sentry-cdn.com; report-uri https://z9fr.report-uri.com/r/d/csp/wizard; object-src 'none'" )) } diff --git a/src/tmpl/mod.rs b/src/tmpl/mod.rs index 2db7a10..2c723bf 100644 --- a/src/tmpl/mod.rs +++ b/src/tmpl/mod.rs @@ -130,6 +130,7 @@ pub fn base(title: Option<&str>, styles: Option<&str>, content: Markup) -> Marku script src="https://unpkg.com/htmx.org@1.9.10" integrity={"sha384-D1Kt99CQMDuVetoL1lrYwg5t+9QdHe7NLX/SoJYkXDFfX37iInKRy5xLSi8nO7UC"} crossorigin={"anonymous"} {} script src="https://unpkg.com/htmx.org/dist/ext/preload.js" {}; script src="https://challenges.cloudflare.com/turnstile/v0/api.js" async defer {}; + script src="https://js.sentry-cdn.com/5f4957f42fb5c2d26f0ad04867411b64.min.js" async defer{}; @match now.month() { //12|1|2 => {