Skip to content

Commit

Permalink
chore: add base and form to csp
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Oct 15, 2024
1 parent 84fe754 commit 3b2c25f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ fn main(req: Request) -> Result<Response, Error> {
[
"default-src *",
"frame-ancestors 'none'",
"style-src * 'unsafe-inline'",
"object-src 'none'",
"base-uri 'none'",
"form-action 'none'",
"style-src * 'unsafe-inline'",
&format!("script-src 'nonce-{nonce}'"),
]
.join(";"),
Expand Down

0 comments on commit 3b2c25f

Please sign in to comment.