From bf9caf305fc3921cc29d7afc3ac4dcfff86c9979 Mon Sep 17 00:00:00 2001 From: Maciej Wawro <36930951+maciekwawro@users.noreply.github.com> Date: Sun, 15 Sep 2019 13:39:57 +0200 Subject: [PATCH] CORS 3 --- galicea_openid_connect/__manifest__.py | 2 +- galicea_openid_connect/api.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/galicea_openid_connect/__manifest__.py b/galicea_openid_connect/__manifest__.py index 1cdfcb1..4a8f194 100644 --- a/galicea_openid_connect/__manifest__.py +++ b/galicea_openid_connect/__manifest__.py @@ -9,7 +9,7 @@ 'website': "http://galicea.pl", 'category': 'Technical Settings', - 'version': '10.0.1.2', + 'version': '10.0.1.3', 'depends': ['web', 'galicea_environment_checkup'], diff --git a/galicea_openid_connect/api.py b/galicea_openid_connect/api.py index 0de6a39..a3c06ec 100644 --- a/galicea_openid_connect/api.py +++ b/galicea_openid_connect/api.py @@ -33,6 +33,7 @@ def resource(path, method, auth='user', clients=None): 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-Type, Accept, X-Debug-Mode, Authorization', 'Access-Control-Max-Age': 60 * 60 * 24, + 'Access-Control-Allow-Methods': 'OPTIONS, HEAD, GET, POST, PUT, DELETE' } if req.httprequest.method == 'OPTIONS': return http.Response(