Skip to content

Commit

Permalink
Improvements to security
Browse files Browse the repository at this point in the history
  • Loading branch information
madskristensen committed Sep 1, 2017
1 parent 09c27ff commit e6734ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ASP.NET Core Photo Gallery

A photo gallery site implemented in ASP.NET Core 2.0.
A photo gallery site implemented in ASP.NET Core 2.0 Razor Pages.

**Demo website**: <https://gallerytemplate.azurewebsites.net/>

Expand Down
2 changes: 1 addition & 1 deletion src/Pages/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<footer>
<p class="container">
Fork me on <a href="https://github.com/madskristensen/PhotoGallery" target="_blank" title="See the source code">GitHub</a>
Fork me on <a href="https://github.com/madskristensen/PhotoGallery" target="_blank" rel="noreferrer" title="See the source code">GitHub</a>
@{await Html.RenderPartialAsync("_LoginButton.cshtml");}
</p>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/_ViewStart.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Context.Response.Headers["Content-Security-Policy"] = $"object-src 'none'; form-action 'self'";
Context.Response.Headers["X-XSS-Protection"] = "1; mode=block";
Context.Response.Headers["Referrer-Policy"] = "no-referrer-when-downgrade";
//Context.Response.Headers["X-Frame-Options"] = "DENY"; // Uncomment this line
Context.Response.Headers["X-Frame-Options"] = "ALLOW-FROM https://www.responsinator.com/"; // Should be set to "DENY"
if (Context.Request.IsHttps)
{
Expand Down

0 comments on commit e6734ce

Please sign in to comment.