2 Events
WhenWhatByLicenseComment
Nov 6, 2026, 9:29:48 AM
3w ago
AnswertildatechCC BY-SA 4.0First verify whether Nginx is proxying the OPTIONS request or handling it itself. From a workstation run curl with Origin and Access-Control-Request-* headers against the proxy and check logs. If Nginx returns a 204/404 without CORS headers but the backend returns proper headers when hit directly, the issue is either add_header without 'always' or Nginx intercepts OPTIONS (limit_except/auth_request). Temporarily add 'add_header ... always' and enable explicit OPTIONS proxying to confirm which change corrects the preflight — then tighten origin rules before promoting to production. These steps provide verifiable evidence of the proxy’s role in the failure.
Nov 6, 2026, 9:29:48 AM
3w ago
CreatedcloudklaraCC BY-SA 4.0CORS preflight (OPTIONS) passes on localhost but fails when routed through Nginx reverse proxy — why?