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
When I run swagger-ui from the published docker image, the response headers include Access-Control-Allow-Origin: *. I'd like to set this so that it includes only my API domain name. Is this possible? Every CORS related question I've seen seems to revolve around the openapi.yaml file, not the swagger UI web application itself.
My swagger-ui is running behind the same hostname as my API so I don't really need this header to allow anything for my use case and would just as soon set it to its strictest value.
The text was updated successfully, but these errors were encountered:
Q&A (please complete the following information)
Content & configuration
Swagger-UI configuration options:
docker compose file used to run swagger ui
How can we help?
When I run swagger-ui from the published docker image, the response headers include
Access-Control-Allow-Origin: *
. I'd like to set this so that it includes only my API domain name. Is this possible? Every CORS related question I've seen seems to revolve around the openapi.yaml file, not the swagger UI web application itself.My swagger-ui is running behind the same hostname as my API so I don't really need this header to allow anything for my use case and would just as soon set it to its strictest value.
The text was updated successfully, but these errors were encountered: