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
A Swagger-UI running outside Helidon application can't consume /openapi as it doesn't provide CORS support.
The response at Swagger-UI is Possible cross-origin (CORS) issue? The URL origin (http://localhost:8080) does not match the page (http://localhost). Check the server returns the correct 'Access-Control-Allow-*' headers.
I've implemented a custom CORSFilter/ContainerResponseFilter but it didn't affect /openapi
A property openapi.cors=true configuration should be provided to enable/disable CORS at /openapi endpoint.
Steps to reproduce
Execute Swagger-UI with docker run -p 80:8080 swaggerapi/swagger-ui
Execute a Helidon-MP application with OpenAPI enabled.
Open the URL http://localhost/?url=http://localhost:8080/openapi in any browser
The text was updated successfully, but these errors were encountered:
rafabene
changed the title
Openapi endpoint must provide CROS
Openapi endpoint must provide CORS
Mar 23, 2020
Environment Details
Problem Description
A Swagger-UI running outside Helidon application can't consume
/openapi
as it doesn't provide CORS support.The response at Swagger-UI is
Possible cross-origin (CORS) issue? The URL origin (http://localhost:8080) does not match the page (http://localhost). Check the server returns the correct 'Access-Control-Allow-*' headers.
I've implemented a custom CORSFilter/ContainerResponseFilter but it didn't affect
/openapi
A property
openapi.cors=true
configuration should be provided to enable/disable CORS at/openapi
endpoint.Steps to reproduce
docker run -p 80:8080 swaggerapi/swagger-ui
http://localhost/?url=http://localhost:8080/openapi
in any browserThe text was updated successfully, but these errors were encountered: