Skip to content

Commit

Permalink
use the CSP nonce
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jan 14, 2024
1 parent 21cd713 commit f9d155a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions content/BlazorBffAzureAD/Server/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@namespace BlazorBffAzureAD.Pages
@using BlazorBffAzureAD.Client
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, NetEscapades.AspNetCore.SecurityHeaders.TagHelpers
@{
Layout = null;
}
Expand Down Expand Up @@ -40,8 +41,8 @@
<a class="dismiss">🗙</a>
</div>

<script src="_framework/blazor.webassembly.js" ></script>
<script src="antiForgeryToken.js" ></script>
<script asp-add-nonce src="_framework/blazor.webassembly.js"></script>
<script asp-add-nonce src="antiForgeryToken.js" ></script>
@Html.AntiForgeryToken()
</body>
</html>

0 comments on commit f9d155a

Please sign in to comment.