mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-06-27 00:56:36 +02:00
fix: Use correct CSP for login page
This commit is contained in:
parent
5c73d3d168
commit
c1bad98702
1 changed files with 1 additions and 4 deletions
|
@ -40,10 +40,7 @@ impl IntoResponse for OidcResponse {
|
||||||
.header(header::CONTENT_TYPE, "text/html")
|
.header(header::CONTENT_TYPE, "text/html")
|
||||||
.header(
|
.header(
|
||||||
header::CONTENT_SECURITY_POLICY,
|
header::CONTENT_SECURITY_POLICY,
|
||||||
format!(
|
format!("default-src 'nonce-{}'; form-action 'self';", self.nonce),
|
||||||
"default-src 'nonce-{}'; form-action https://eon.presentmatter.one/;",
|
|
||||||
self.nonce
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
.body(body.into())
|
.body(body.into())
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
|
Loading…
Add table
Reference in a new issue