Skip to content

Commit

Permalink
Update flask_app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored Apr 25, 2024
1 parent fdefe3e commit 8a8e28e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyway/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,7 @@ def acc_in_area_query():
@app.after_request
def add_allow_methods_header(response):
if request.path.startswith("/api/news-flash/"):
response.headers['Access-Control-Allow-Methods'] = "GET, POST, PATCH"
response.headers['Access-Control-Allow-Methods'] = "GET, OPTIONS, PATCH"
response.headers['Access-Control-Allow-Origin'] = "*"
return response

Expand Down

0 comments on commit 8a8e28e

Please sign in to comment.