1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22: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

@ -91,6 +91,9 @@ namespace Bit.Notifications
IdentityModelEventSource.ShowPII = true;
app.UseSerilog(env, appLifetime, globalSettings);
// Add general security headers
app.UseMiddleware<SecurityHeadersMiddleware>();
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();