Browse Source
Merge pull request #12686 from abpframework/liangshiwei/swashbuckle
pull/12687/head
maliming
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
framework/src/Volo.Abp.Swashbuckle/wwwroot/swagger/ui/abp.swagger.js
|
|
|
@ -8,6 +8,8 @@ var abp = abp || {}; |
|
|
|
var firstRequest = true; |
|
|
|
abp.appPath = configObject.baseUrl || abp.appPath; |
|
|
|
|
|
|
|
var requestInterceptor = configObject.requestInterceptor; |
|
|
|
|
|
|
|
configObject.requestInterceptor = async function (request) { |
|
|
|
|
|
|
|
if(request.url.includes(excludeUrl[1])){ |
|
|
|
@ -26,6 +28,10 @@ var abp = abp || {}; |
|
|
|
if (antiForgeryToken) { |
|
|
|
request.headers[abp.security.antiForgery.tokenHeaderName] = antiForgeryToken; |
|
|
|
} |
|
|
|
|
|
|
|
if(requestInterceptor){ |
|
|
|
requestInterceptor(request); |
|
|
|
} |
|
|
|
return request; |
|
|
|
}; |
|
|
|
|
|
|
|
|