Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
fix: use Access-Control-Allow-Methods to specify allowed request methods
  • Loading branch information
ceacosta-git authored Jun 10, 2024
1 parent ec53547 commit defcb3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def after_request(response):
"Access-Control-Allow-Headers", "Content-Type, Authorization"
)
response.headers.add(
"Access-Control-Allow-Headers", "GET, POST, PATCH, DELETE, OPTION"
"Access-Control-Allow-Methods", "GET, POST, PATCH, DELETE, OPTION"
)
return response

Expand Down

0 comments on commit defcb3c

Please sign in to comment.