-
Notifications
You must be signed in to change notification settings - Fork 4.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
Kong: Requested URL return 204 instead of 200 #241
Comments
I see your config It is missing from the plugin's documentation but I guess you should set it to true if you want to preflight request to be proxied. |
Even tho because of #203, I don't think the preflight requests can really be proxied, I will test this. |
Even with preflight_continue=true i'll get only OPTIONS my post won't be sent through Kong.. |
My guess is this issue is so old there's nothing to be done here? |
Hi,
i try to forward all request from my client to my tomcat/http backend at 8081. I try to migrate kong into my project.
If i POST a request to auth myself, i should get 200 with content-length:0 but i 'll get a 204 no content back. My POSTs pass through, but my Options went back with 204. I think it could be something wrong with your nginx.conf and your proxy_ settings. Any Ideas how to forward my requests to my api and get my originall 200 code instead of 204?P.S: All went right @ access.log / error.log no problems at all.
Kong_proxy: running @ 8080
admin: running @ 8001
my restapp is deployed under:
http://localhost:8081/app
for requests:
http://localhost:8081/app/*
P.S2: Found and fix something, only Options get now 204, Posts get 200... Any Ideas?
api_config:
Plugin_config:
normal Server-Return Header:
Return Header with Kong-enabled:
The text was updated successfully, but these errors were encountered: