improvement: generate default oauth2RedirectUrl based on page location (via #5085)

This commit is contained in:
kyle
2018-12-15 03:54:53 +01:00
committed by Ron
parent 9658aca08e
commit 61b5ed79a0
3 changed files with 12 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ module.exports = function SwaggerUI(opts) {
maxDisplayedTags: null,
filter: null,
validatorUrl: "https://online.swagger.io/validator",
oauth2RedirectUrl: `${window.location.protocol}//${window.location.host}/oauth2-redirect.html`,
configs: {},
custom: {},
displayOperationId: false,