-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Header parameters and Redirect #1935
Comments
Have you added the headers to your CORS configuration? |
Hi @webron, Yes, I added them into the |
Yes. Can you share the output of |
@webron I'll give you the output at 09-10am CET.. I don't have my computer for the work.. |
@webron Here is the output.. There's something weird because it says that the HEAD requests are not supported..
|
Yup, and it also doesn't show the CORS headers. So either they are not set, or the lack of |
The things is that I'm using the Spring MVC server generated using Swagger Codegen.. So, do you know if there's a way to accept the HEAD requests?? |
There are resources on the web on how to enable it, but that also depends on the Spring version and so on. I'd suggest doing a quick search on that. |
Okay, I will do that.. Thank you for your help.. |
add another cors extension to chrome... and enable it ... then it will work |
Hi,
I encountered a problem using Swagger-UI.. (There's no problem while using the Web Browser or a client library generated by Codegen)
First, le me explain my call.. I call a function that will process some things and then will redirect to another page to send back a picture.. I attached a screenshot under it..
This is "working".. (Still have some issues with getting the picture, see #1848).. But the problem comes when I'm entering some headers parameters (here appId and appKey).. Swagger-UI does then a OPTIONS call before doing the POST one and don't do anything after that.. Normally, it should redirect as it is done before (without the headers parameters).. See the calls on the second screnshot..
Am I doing something wrong with the headers?? Or does anyone also encountered this problem??
Thank you
The text was updated successfully, but these errors were encountered: