We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The bug is located in the following extension: quarkus-smallrye-openapi
When I call "http://localhost:8080/openapi" with the OPTIONS Method, it keeps loading like something freeze the request
Expected behavior It should return an 200er and the allowed methods
To Reproduce Steps to reproduce the behavior:
Screenshots
Solution could be In this class: https://github.com/quarkusio/quarkus/blob/master/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java
if (event.request().method().equals(HttpMethod.OPTIONS)) { addCorsResponseHeaders(event.response()); event.response().headers().set("Allow", ALLOWED_METHODS); }
I think it miss the call next on the event
if (event.request().method().equals(HttpMethod.OPTIONS)) { addCorsResponseHeaders(event.response()); event.response().headers().set("Allow", ALLOWED_METHODS); event.next(); }
The text was updated successfully, but these errors were encountered:
/cc @EricWittmann, @MikeEdgar, @phillip-kruger
Sorry, something went wrong.
@Machareder that makes sense. Are you interested in providing a Pull-Request?
@gastaldi
#10612
I hope the Pull-Request is provided correctly
Fix openapihandler request options and add test
0829eac
Fix: quarkusio#10604
Successfully merging a pull request may close this issue.
Describe the bug
The bug is located in the following extension: quarkus-smallrye-openapi
When I call "http://localhost:8080/openapi" with the OPTIONS Method, it keeps loading like something freeze the request
Expected behavior
It should return an 200er and the allowed methods
To Reproduce
Steps to reproduce the behavior:
curl --request OPTIONS
--url http://localhost:8080/openapi
Screenshots

Solution could be
In this class:
https://github.com/quarkusio/quarkus/blob/master/extensions/smallrye-openapi/runtime/src/main/java/io/quarkus/smallrye/openapi/runtime/OpenApiHandler.java
I think it miss the call next on the event
The text was updated successfully, but these errors were encountered: