Skip to content

Commit f5e17f5

Browse files
author
jobe
committed
Enhanced options for preflight requests regarding CORS.
1 parent f40a231 commit f5e17f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

raspend/http.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ def do_OPTIONS(self):
3030
"""
3131
self.send_response(200)
3232
self.send_header('Access-Control-Allow-Origin', '*')
33-
self.send_header('Access-Control-Allow-Methods', 'GET, POST, OPTIONS')
34-
self.send_header("Access-Control-Allow-Headers", "X-Requested-With, Content-Type")
33+
self.send_header('Access-Control-Allow-Methods', 'POST, GET, OPTIONS, PUT, DELETE')
34+
self.send_header("Access-Control-Allow-Headers", 'Origin, Content-Type, Accept, Authorization, X-Request-With')
3535
self.end_headers()
3636
return
3737

0 commit comments

Comments
 (0)