aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Renard 2019-09-13 16:39:50 -0300
committerLibravatar Renard 2019-09-13 16:39:50 -0300
commit6deff8d8ba83e6407d59a69590ea7ed5c7b37d46 (patch)
tree368285d9c1368ffb686817041d1ecfa134020279
parentc8ee5b58665e7509654df2f52772349a3521f20f (diff)
downloadweabot-6deff8d8ba83e6407d59a69590ea7ed5c7b37d46.tar.gz
weabot-6deff8d8ba83e6407d59a69590ea7ed5c7b37d46.tar.xz
weabot-6deff8d8ba83e6407d59a69590ea7ed5c7b37d46.zip
CORS Methods
-rwxr-xr-xcgi/weabot.py2
1 files changed, 1 insertions, 1 deletions
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":