diff options
| author | Denis Ledoux <dle@odoo.com> | 2016-06-03 13:22:56 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2016-06-03 13:26:52 +0200 |
| commit | f2e9d412d16295b4ce20a32d6895b10e80af4311 (patch) | |
| tree | ef6ae3fb6c6caa88b4f2e0527cf74675dfd3efbb | |
| parent | e54fb3eb22cb100c668ef7101b9852ec76cdef72 (diff) | |
[FIX] web: allow cross origin on /web/webclient/qweb
This revision is similar to edc4b0b9bb87aeae2e923a5a0d93e12ee171906d
Since revision 7f8fe1076660ab949a050c04443abd160555e08a
the route `/web/webclient/qweb` must allow cross origin
so this route can be called from HTTP pages
e.g. To allow a HTTP loaded point of sale to call this route in
HTTPS
opw-679288
| -rw-r--r-- | addons/web/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 18a9d55e601..4afeb1a70ce 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -520,7 +520,7 @@ class WebClient(http.Controller): headers = [('Content-Type', 'application/javascript'), ('Cache-Control', 'max-age=%s' % (36000))] return request.make_response(momentjs_locale, headers) - @http.route('/web/webclient/qweb', type='http', auth="none") + @http.route('/web/webclient/qweb', type='http', auth="none", cors="*") def qweb(self, mods=None, db=None): files = [f[0] for f in manifest_glob('qweb', addons=mods, db=db)] last_modified = get_last_modified(files) |
