changeset 1e4006f86e3f in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset&node=1e4006f86e3f
description:
Allow CORS on root path
issue10974
review379651002
diffstat:
CHANGELOG | 1 +
trytond/protocols/dispatcher.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r f2b6ed007150 -r 1e4006f86e3f CHANGELOG
--- a/CHANGELOG Tue Mar 22 09:53:36 2022 +0100
+++ b/CHANGELOG Thu Mar 24 09:59:09 2022 +0000
@@ -1,3 +1,4 @@
+* Allow CORS on root path
* Allow button access to be deactivated
* Always return tuple for MultiSelection
* Use default selectors instead of select
diff -r f2b6ed007150 -r 1e4006f86e3f trytond/protocols/dispatcher.py
--- a/trytond/protocols/dispatcher.py Tue Mar 22 09:53:36 2022 +0100
+++ b/trytond/protocols/dispatcher.py Thu Mar 24 09:59:09 2022 +0000
@@ -86,8 +86,9 @@
return methods[request.rpc_method](request, *request.rpc_params)
[email protected]('/', methods=['OPTIONS'])
@app.route('/<path:path>', methods=['OPTIONS'])
-def options(request, path):
+def options(request, path=None):
return Response(status=HTTPStatus.NO_CONTENT)