1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00

[VULN-45] CSP for Icons Server (#4747)

* CSP for icon server

* default to self

* append
This commit is contained in:
Kyle Spearrin 2024-09-09 15:46:01 -04:00 committed by GitHub
parent b103e8f5d9
commit 55bf815050
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,6 +78,9 @@ public class Startup
Public = true,
MaxAge = TimeSpan.FromDays(7)
};
context.Response.Headers.Append("Content-Security-Policy", "default-src 'self'; script-src 'none'");
await next();
});