We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 294c7bd commit 9e2f744Copy full SHA for 9e2f744
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Host/wwwroot/swagger/ui/index.html
@@ -72,9 +72,19 @@
72
<script src="ui/abp.swagger.js"></script>
73
74
<script>
75
- window.onload = function () {
76
- fetch("/AntiForgery/SetCookie");
77
-
+ window.onload = function () {
+ var authToken = abp.auth.getToken();
+ if (authToken) {
78
+ fetch("/AntiForgery/SetCookie",
79
+ {
80
+ headers: {
81
+ "Authorization": 'Bearer ' + authToken
82
+ }
83
+ });
84
+ } else {
85
+ fetch("/AntiForgery/SetCookie");
86
87
+
88
var configObject = JSON.parse('%(ConfigObject)');
89
90
// Apply mandatory parameters
0 commit comments