From 6deff8d8ba83e6407d59a69590ea7ed5c7b37d46 Mon Sep 17 00:00:00 2001 From: Renard Date: Fri, 13 Sep 2019 16:39:50 -0300 Subject: CORS Methods --- cgi/weabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/weabot.py b/cgi/weabot.py index b0599e1..4f58f92 100755 --- a/cgi/weabot.py +++ b/cgi/weabot.py @@ -182,7 +182,7 @@ class weabot(object): elif path_split[1] == "api": import api caught = True - self.headers = [("Content-Type", "application/json"), ("Access-Control-Allow-Origin", "*")] + self.headers = [("Content-Type", "application/json"), ("Access-Control-Allow-Origin", "*"), ("Access-Control-Allow-Methods", "PUT, GET, POST, DELETE, OPTIONS")] OpenDb() api.api(self, path_split) elif path_split[1] == "threadlist": -- cgit v1.2.1-18-gbd029