diff --git a/raspend/http.py b/raspend/http.py index 7bd285b..00c0586 100644 --- a/raspend/http.py +++ b/raspend/http.py @@ -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