Skip to content

Commit

Permalink
Enhanced options for preflight requests regarding CORS.
Browse files Browse the repository at this point in the history
  • Loading branch information
jobe committed Sep 22, 2022
1 parent f40a231 commit f5e17f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raspend/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def do_OPTIONS(self):
"""
self.send_response(200)
self.send_header('Access-Control-Allow-Origin', '*')
self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
self.send_header("Access-Control-Allow-Headers", "X-Requested-With, Content-Type")
self.send_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')
self.send_header("Access-Control-Allow-Headers", 'Origin, Content-Type, Accept, Authorization, X-Request-With')
self.end_headers()
return

Expand Down

0 comments on commit f5e17f5

Please sign in to comment.