1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

Added middleware for general security headers (#1700)

This commit is contained in:
Kyle Spearrin
2021-11-09 11:37:14 -05:00
committed by GitHub
parent f26a235964
commit 327e784336
10 changed files with 56 additions and 0 deletions

View File

@ -115,6 +115,9 @@ namespace Bit.Admin
{
app.UseSerilog(env, appLifetime, globalSettings);
// Add general security headers
app.UseMiddleware<SecurityHeadersMiddleware>();
if (globalSettings.SelfHosted)
{
app.UsePathBase("/admin");