Fetch API cannot load http://127.0.0.1:9090/tigase/swagger. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9090' is therefore not allowed access. The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
hi,I resolved the first problem.but now,it make the some other problem.
version: 2.2.2
springmvc:4.3.7
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1:9090/tigase/v2/api-docs"}]}
Most helpful comment
https://github.com/swagger-api/swagger-ui#cors-support