superrcoop / photogram

instagram remake with Vue.js and flask python
MIT License
1 stars 1 forks source link

JWT and csrf_token #46

Open superrcoop opened 6 years ago

superrcoop commented 6 years ago

<form method="post">

{{ form.csrf_token }}

</form>
<form method="post">

<input type="hidden" name="_token" :value="csrf" />

</form>
superrcoop commented 6 years ago

https://forum.vuejs.org/t/csrf-token-in-vue-component/4518

superrcoop commented 6 years ago

https://security.stackexchange.com/questions/133787/securely-using-jwts-with-csrf-protection-and-refresh-tokens