Skip to content

Commit

Permalink
allow request method options
Browse files Browse the repository at this point in the history
  • Loading branch information
longshuicy committed Nov 27, 2024
1 parent a1daef3 commit 5a36c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dachub_auth/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def handle_request():
return healthz()

# Handle CORS preflight
if request.headers.get('X-Forwarded-Method') == 'OPTIONS':
if request.headers.get('X-Forwarded-Method') == 'OPTIONS' or request.method == 'OPTIONS':
return Response(status=200)

# Retrieve user and request information
Expand Down

0 comments on commit 5a36c2c

Please sign in to comment.