diff options
author | Renard | 2019-09-13 17:03:07 -0300 |
---|---|---|
committer | Renard | 2019-09-13 17:03:11 -0300 |
commit | 3ff6f43f51d813280d54fd91121c14c4819b5b84 (patch) | |
tree | 100cecf6598efb64d5d587a629eafe49e9fc096d /cgi | |
parent | 6deff8d8ba83e6407d59a69590ea7ed5c7b37d46 (diff) | |
download | weabot-3ff6f43f51d813280d54fd91121c14c4819b5b84.tar.gz weabot-3ff6f43f51d813280d54fd91121c14c4819b5b84.tar.xz weabot-3ff6f43f51d813280d54fd91121c14c4819b5b84.zip |
CORS Headers 2
Diffstat (limited to 'cgi')
-rwxr-xr-x | cgi/weabot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgi/weabot.py b/cgi/weabot.py index 4f58f92..64cb890 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", "*"), ("Access-Control-Allow-Methods", "PUT, GET, POST, DELETE, OPTIONS")] + self.headers = [("Content-Type", "application/json"), ("Access-Control-Allow-Origin", "*"), ("Access-Control-Allow-Methods", "PUT, GET, POST, DELETE, OPTIONS"), ("Access-Control-Allow-Headers", "Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With")] OpenDb() api.api(self, path_split) elif path_split[1] == "threadlist": |