Closed devinivy closed 5 years ago
It appears that swagger UI makes requests not to the current host but instead server.info.host, which can cause CORS issues. This is most typically seen when running the server at 0.0.0.0 but browser swagger UI on localhost.
server.info.host
0.0.0.0
localhost
This was resolved with https://github.com/glennjones/hapi-swagger/pull/537.
It appears that swagger UI makes requests not to the current host but instead
server.info.host
, which can cause CORS issues. This is most typically seen when running the server at0.0.0.0
but browser swagger UI onlocalhost
.