Allow null origin also to GET requests
The Origin header is also set for GET requests made by JavaScript. issue11691 review417911004 (grafted from 2466a04c55bb8d913d19485c61d571d46ec04241) --HG-- branch : 6.0
This commit is contained in:
1 parent
6ef3c82446
commit
e4235b033f
1 file changed
+3
@@ -14,6 +14,7 @@ timesheet_application = user_application('timesheet')
|
||||
|
||||
|
||||
@app.route('/<database_name>/timesheet/employees', methods=['GET'])
|
||||
@allow_null_origin
|
||||
@with_pool
|
||||
@with_transaction()
|
||||
@timesheet_application
|
||||
@@ -25,6 +26,7 @@ def timesheet_employees(request, pool):
|
||||
|
||||
@app.route('/<database_name>/timesheet/employee/<int:employee>/works',
|
||||
methods=['GET'])
|
||||
@allow_null_origin
|
||||
@with_pool
|
||||
@with_transaction()
|
||||
@timesheet_application
|
||||
@@ -50,6 +52,7 @@ def timesheet_works(request, pool, employee):
|
||||
|
||||
@app.route('/<database_name>/timesheet/employee/<int:employee>/lines/<date>',
|
||||
methods=['GET'])
|
||||
@allow_null_origin
|
||||
@with_pool
|
||||
@with_transaction()
|
||||
@timesheet_application
|
||||
|
||||
Reference in new issue
Block a user