Commit b0c1a756 authored by Vincent Pelletier's avatar Vincent Pelletier

caucase.wsgi: Fix CORS cookie path.

Thanks, modern pylint !
parent 4c1fc325
......@@ -687,7 +687,7 @@ class Application(object):
Returns a Morsel instance.
cookie = SimpleCookie({self._cors_cookie_id: value})[self._cors_cookie_id]
cookie['path'] = environ.get('SCRIPT_NAME') or '/',
cookie['path'] = environ.get('SCRIPT_NAME') or '/'
cookie['max-age'] = A_YEAR_IN_SECONDS
# No "secure" flag: cookie is not secret, and is protected against
# tampering on client side.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment