We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_csrf_token cookie is not set properly in safari browser when path is bytes not str.
Function generate_csrf_token is getting path configuration from get_conf:
generate_csrf_token
get_conf
csrf_path = conf.get('csrf.path', ROOT).encode(ENCODING)
When I'm converting bytes to str in generate_csrf_token cookie is set correctly.
response.set_cookie(token_name, token, path=path.decode(), secret=secret, max_age=expires)
The text was updated successfully, but these errors were encountered:
goodbadwolf
No branches or pull requests
_csrf_token cookie is not set properly in safari browser when path is bytes not str.
Function
generate_csrf_token
is getting path configuration fromget_conf
:When I'm converting bytes to str in
generate_csrf_token
cookie is set correctly.The text was updated successfully, but these errors were encountered: