Skip to content

Commit

Permalink
Merge pull request #116 from Vizzuality/cloud_function/cors_headers_post
Browse files Browse the repository at this point in the history
Allow CORS for POST
  • Loading branch information
Agnieszka Figiel authored Dec 11, 2023
2 parents 39947f0 + 95065bf commit c336831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud_functions/analysis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def index(request):
# header and caches preflight response for an 3600s
headers = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Methods": "GET, PUT, POST, HEAD",
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Max-Age": "3600",
}
Expand Down

0 comments on commit c336831

Please sign in to comment.