Skip to content

Commit

Permalink
Xframe settings test
Browse files Browse the repository at this point in the history
  • Loading branch information
rshrirohit committed Oct 25, 2024
1 parent de21044 commit d103940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DigitalLearningSolutions.Web/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,11 @@ public void Configure(IApplicationBuilder app, IMigrationRunner migrationRunner,
"font-src https://script.hotjar.com https://assets.nhs.uk/; " +
"connect-src 'self' http: ws:; " +
"img-src 'self' data: https:; " +
"frame-ancestors *" +
"frame-src 'self' https:");
context.Response.Headers.Add("Referrer-Policy", "no-referrer");
context.Response.Headers.Add("Strict-Transport-Security", "max-age=31536000; includeSubDomains");
context.Response.Headers.Add("X-Content-Type-Options", "nosniff");
context.Response.Headers.Add("X-Frame-Options", "deny");
context.Response.Headers.Add("X-XSS-protection", "0");
await next();
});
Expand Down

0 comments on commit d103940

Please sign in to comment.