hapipal / boilerplate

A friendly, proven starting place for your next hapi plugin or deployment
https://hapipal.com
184 stars 26 forks source link

Investigate swagger flavor CORS issue #50

Closed devinivy closed 5 years ago

devinivy commented 6 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.

devinivy commented 5 years ago

This was resolved with https://github.com/glennjones/hapi-swagger/pull/537.