I have incorporated swagger UI in my application.
When I try and see the swagger UI, I get the documentation of the API nicely but after some time it shows some error i
Setting this.model.validatorUrl = null;
in dist/swagger-ui.js
worked for me ..
// Default validator
if(window.location.protocol === 'https:') {
//this.model.validatorUrl = 'https://online.swagger.io/validator';
this.model.validatorUrl = null;
} else {
//this.model.validatorUrl = 'http://online.swagger.io/validator';
this.model.validatorUrl = null;
}