[Flask] Flask-Security authentication in JS
Morgan Connolly
connollymorg at gmail.com
Wed Sep 2 14:10:31 CEST 2015
I have a Flask app that uses Flask-Security for authentication, which is
storing authentication details in cookies on the client side. Currently, it
is a static app rendered using Jinja templates, but now I want to implement
some features which require access to protected resources dynamically via
JavaScript.
If I send a request using JavaScript to a URL, the cookies won't be
transmitted. If I want to transmit the username/password with each request,
I will have to pass it to Jinja in cleartext.
I'm at a total loss here, and I do not know what to do. Can somebody point
me in the right direction?
Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20150902/067714df/attachment.html>
More information about the Flask
mailing list