-
Notifications
You must be signed in to change notification settings - Fork 83
/openapi should provider CORS headers #416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We'll discuss this in the next hangout. |
Quarkus does have it in the vert.x router. |
@phillip-kruger confirmed that Quarkus has CORS enabled for the |
I agree, this can be handled in implementations |
Closing issue. As noted in earlier comments, this is something that will continue to be not included in the specification. |
@MikeEdgar I think it will be a good support for CORS header though. @tjquinno what do you think? |
@MikeEdgar I reopened this issue for further discussion. If we all think it is not something we should spec, we can then close it. |
…d is all HTTP Methods. Signed-off-by:Phillip Kruger <[email protected]>
Since CORS support is not mandatory in the specification, I've seen some implementations that doesn't use CORS headers on /openapi.
However, tools like Swagger presents the following error message when consuming a MP application with OpenAPI without CORS headers:
"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."
This issue is to request that CORS headers should be mandatory to enable tools like Swagger-UI to consume /openapi endpoint.
The text was updated successfully, but these errors were encountered: