You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I deoply the swagger-ui with docker in my local machine(CentOS 7.3) the command is like this:
docker run -d -p 9001:8080 -name swagger-ui -v /data/swagger-data/swagger/:/usr/share/nginx/html/swagger -e SWAGGER_JSON=/data/swagger-data/swagger/swagger.json swagerapi/swagger-ui
when I accsee througth the url: 192.168.13.145:9001, the page gives error like blow,
Dears,
I deoply the swagger-ui with docker in my local machine(CentOS 7.3) the command is like this:
docker run -d -p 9001:8080 -name swagger-ui -v /data/swagger-data/swagger/:/usr/share/nginx/html/swagger -e SWAGGER_JSON=/data/swagger-data/swagger/swagger.json swagerapi/swagger-ui
when I accsee througth the url: 192.168.13.145:9001, the page gives error like blow,
Failed to load API definition. Fetch error Failed to fetch https://petstore.swagger.io/v2/swagger.json
Fetch error
Possible cross-origin(CoRs)issue? The URl origin
does not match the page
(https://petstore.swagger.io)
(http://192.168.13.145:9001). check the server returns the correct
Access-Control-Allow-*' headers
so, could anyone kindly give me some help? Thanks a lot.
The text was updated successfully, but these errors were encountered: