mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 11:04:31 -05:00
[VULN-45] CSP for Icons Server (#4747)
* CSP for icon server * default to self * append
This commit is contained in:
parent
b103e8f5d9
commit
55bf815050
@ -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();
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user