Skip to content

Commit

Permalink
#6165 The AntiForgeryToken must be present on any page in the public …
Browse files Browse the repository at this point in the history
…store
  • Loading branch information
DmitriyKulagin committed Apr 6, 2022
1 parent b520448 commit ef7a179
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Presentation/Nop.Web/Views/Boards/Forum.cshtml
Expand Up @@ -14,7 +14,6 @@
@await Component.InvokeAsync("ForumBreadcrumb", new { forumId = Model.Id })
@await Html.PartialAsync("_ForumHeader")
@await Component.InvokeAsync("Widget", new { widgetZone = PublicWidgetZones.BoardsForumAfterHeader, additionalData = Model })
<nop-antiforgery-token />
<div class="forum-info">
<div class="forum-name">
@if (Model.ForumFeedsEnabled)
Expand Down
1 change: 0 additions & 1 deletion src/Presentation/Nop.Web/Views/Boards/Topic.cshtml
Expand Up @@ -13,7 +13,6 @@
@await Component.InvokeAsync("ForumBreadcrumb", new { forumTopicId = Model.Id })
@await Html.PartialAsync("_ForumHeader")
@await Component.InvokeAsync("Widget", new { widgetZone = PublicWidgetZones.BoardsTopicAfterHeader, additionalData = Model })
<nop-antiforgery-token />
<div class="topic-name">
<h1>@Model.Subject</h1>
</div>
Expand Down
1 change: 0 additions & 1 deletion src/Presentation/Nop.Web/Views/Customer/Addresses.cshtml
Expand Up @@ -17,7 +17,6 @@
<h1>@T("Account.MyAccount") - @T("Account.CustomerAddresses")</h1>
</div>
<div class="page-body">
<nop-antiforgery-token />
@if (Model.Addresses.Count > 0)
{
<div class="address-list">
Expand Down
@@ -1,5 +1,4 @@
<nop-antiforgery-token />
<script asp-location="Footer">
<script asp-location="Footer">
$(document).ready(function () {
$('#eu-cookie-bar-notification').show();
Expand Down
Expand Up @@ -29,7 +29,6 @@
</div>
</div>
<div class="newsletter-result" id="newsletter-result-block"></div>
<nop-antiforgery-token />
<script asp-location="Footer">
function newsletter_subscribe(subscribe) {
var subscribeProgress = $("#subscribe-loading-progress");
Expand Down
1 change: 0 additions & 1 deletion src/Presentation/Nop.Web/Views/Shared/_Poll.cshtml
Expand Up @@ -30,7 +30,6 @@
</div>
<div class="poll-vote-error" id="block-poll-vote-error-@(Model.Id)" style="display:none">
</div>
<nop-antiforgery-token />
<script asp-location="Footer">
$(document).ready(function () {
$('#vote-poll-@(Model.Id)').on('click', function () {
Expand Down
1 change: 1 addition & 0 deletions src/Presentation/Nop.Web/Views/Shared/_Root.Head.cshtml
Expand Up @@ -70,6 +70,7 @@
<!--Powered by nopCommerce - https://www.nopCommerce.com-->
</head>
<body>
<nop-antiforgery-token />
@RenderBody()

@NopHtml.GenerateScripts(ResourceLocation.Footer)
Expand Down

0 comments on commit ef7a179

Please sign in to comment.