changeset 2466a04c55bb in modules/timesheet:default
details: https://hg.tryton.org/modules/timesheet?cmd=changeset&node=2466a04c55bb
description:
Allow null origin also to GET requests
The Origin header is also set for GET requests made by JavaScript.
issue11691
review417911004
diffstat:
routes.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (27 lines):
diff -r 0f30924d4d17 -r 2466a04c55bb routes.py
--- a/routes.py Mon May 02 16:56:54 2022 +0200
+++ b/routes.py Tue Sep 13 00:20:53 2022 +0200
@@ -14,6 +14,7 @@
@app.route('/<database_name>/timesheet/employees', methods=['GET'])
+@allow_null_origin
@with_pool
@with_transaction()
@timesheet_application
@@ -25,6 +26,7 @@
@app.route('/<database_name>/timesheet/employee/<int:employee>/works',
methods=['GET'])
+@allow_null_origin
@with_pool
@with_transaction()
@timesheet_application
@@ -50,6 +52,7 @@
@app.route('/<database_name>/timesheet/employee/<int:employee>/lines/<date>',
methods=['GET'])
+@allow_null_origin
@with_pool
@with_transaction()
@timesheet_application