Skip to content

Commit

Permalink
Merge pull request #13 from z9fr/feature/develop/sentry
Browse files Browse the repository at this point in the history
feat: added sentry
  • Loading branch information
ebadfd authored Jan 6, 2024
2 parents a27109b + a1b8913 commit 9f9ad33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fn cache_header(_: &Response) -> Option<header::HeaderValue> {

fn csp_header(_: &Response) -> Option<header::HeaderValue> {
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'"
))
}

Expand Down
1 change: 1 addition & 0 deletions src/tmpl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pub fn base(title: Option<&str>, styles: Option<&str>, content: Markup) -> Marku
script src="https://unpkg.com/[email protected]" 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 => {
Expand Down

0 comments on commit 9f9ad33

Please sign in to comment.