Skip to content

Commit

Permalink
Allow all headers
Browse files Browse the repository at this point in the history
  • Loading branch information
emilong committed Dec 5, 2023
1 parent 462a7f1 commit 665c3f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gcp_storage_emulator/handlers/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ def batch(request, response, storage, *args, **kwargs):

def options(request, response, storage, *args, **kwargs):
response["Content-Type"] = "text/html; charset=UTF-8"
response["Allow"] = "OPTIONS,GET,POST,PUT,DELETE,PATCH"
response["Access-Control-Allow-Origin"] = "*"
response["Access-Control-Allow-Methods"] = "GET,POST,PUT,PATCH,DELETE,OPTIONS"
response["Access-Control-Allow-Methods"] = "*"
response["Access-Control-Request-Headers"] = "*"
response.write("HTTP/1.1 200 OK\r\n")

0 comments on commit 665c3f0

Please sign in to comment.