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.
2 parents 4d08591 + a201d18 commit 465164eCopy full SHA for 465164e
src/main/javascript/view/MainView.js
@@ -61,13 +61,7 @@ SwaggerUi.Views.MainView = Backbone.View.extend({
61
// Localhost override
62
this.model.validatorUrl = null;
63
} else {
64
- // Default validator
65
- if(window.location.protocol === 'https:') {
66
- this.model.validatorUrl = 'https://online.swagger.io/validator';
67
- }
68
- else {
69
- this.model.validatorUrl = 'http://online.swagger.io/validator';
70
+ this.model.validatorUrl = '//online.swagger.io/validator';
71
}
72
73
// JSonEditor requires type='object' to be present on defined types, we add it if it's missing
0 commit comments