Handling OPTIONS request in nginx
I’m probably late, but I had the same problem, and found two solutions to it. First is tricking Nginx that a 405 status is actually a 200 OK and then proxy_pass it to your HAProxy like this: error_page 405 =200 @405; location @405 { root /; proxy_pass http://yourproxy:8080; } The second solution is just to … Read more