Update default validator with correct protocol
Current code defaults to http protocol, but when package is installed in a https environment, the default validator should be securely available.
This commit is contained in:
@@ -68,7 +68,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
|
||||
} else {
|
||||
|
||||
// Default validator
|
||||
this.model.validatorUrl = 'http://online.swagger.io/validator';
|
||||
this.model.validatorUrl = window.location.protocol + '//online.swagger.io/validator';
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user