Skip to content

Commit 294c7bd

Browse files
authored
Update index.html
1 parent b3fb309 commit 294c7bd

File tree

1 file changed

+3
-5
lines changed
  • aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui

1 file changed

+3
-5
lines changed

aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/index.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,9 @@
7272
<script src="ui/abp.swagger.js"></script>
7373

7474
<script>
75-
window.onload = function () {
76-
if (!abp.security.antiForgery.getToken()) {
77-
fetch("/AntiForgery/SetCookie");
78-
}
79-
75+
window.onload = function () {
76+
fetch("/AntiForgery/SetCookie");
77+
8078
var configObject = JSON.parse('%(ConfigObject)');
8179

8280
// Apply mandatory parameters

0 commit comments

Comments
 (0)