-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Authorization header not sent using "try it out", with SecuritySchemes Basic #5725
Comments
Have you provided your basic auth credentials in the UI? (Using the Authorize button or the lock icon next to the operation) |
Those HTTP headers seem to be from a preflight OPTIONS request (part of CORS checking process) and not from the actual GET request. What is the response to that OPTIONS request? |
Hi @webron . Yes, I provided the auth credentials through the Authorize button before trying to execute the request. |
Q&A (please complete the following information)
Using Swagger-ui through org.webjars.swagger-ui:3.24.0 fork that is used by gradle-swagger-generator-plugin:2.15.1
Content & configuration
Screenshots
How can we help?
The swagger page shows this curl command for the operation "query":
curl -X GET "http://dsv:7422/blocks/query?anpBlockType=prod" -H "accept: application/json" -H "Authorization: Basic "
Bu when it sends the request it sends with no Authorization header:
I'm generating the openapi.yaml with java annotations.
Do you know what is wrong?
The text was updated successfully, but these errors were encountered: