maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
3 deletions
-
framework/src/Volo.Abp.Swashbuckle/wwwroot/swagger/ui/abp.swagger.js
|
|
|
@ -4,11 +4,9 @@ |
|
|
|
abp.SwaggerUIBundle = function (configObject) { |
|
|
|
configObject.requestInterceptor = function (request) { |
|
|
|
var token = abp.auth.getToken(); |
|
|
|
|
|
|
|
if(token){ |
|
|
|
if (token) { |
|
|
|
request.headers.Authorization = "Bearer " + token; |
|
|
|
} |
|
|
|
|
|
|
|
var antiForgeryToken = abp.security.antiForgery.getToken(); |
|
|
|
if (antiForgeryToken) { |
|
|
|
request.headers[abp.security.antiForgery.tokenHeaderName] = antiForgeryToken; |
|
|
|
|