Skip to content

Commit

Permalink
use the nonce in the host
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Jan 14, 2024
1 parent ed23a0b commit 1711554
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BlazorAuth0Bff/Server/Pages/_Host.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@namespace BlazorAuth0Bff.Pages
@using BlazorAuth0Bff.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 1711554

Please sign in to comment.