IndominusByte / fastapi-jwt-auth

FastAPI extension that provides JWT Auth support (secure, easy to use, and lightweight)
http://indominusbyte.github.io/fastapi-jwt-auth/
MIT License
630 stars 143 forks source link

Missing CSRF token #25

Closed YogeshUpdhyay closed 3 years ago

YogeshUpdhyay commented 3 years ago

In https://indominusbyte.github.io/fastapi-jwt-auth/usage/jwt-in-cookies/ When using CSRF cookies refresh endpoints raises 401 exception.

IndominusByte commented 3 years ago

What the message appear? if the message was "Missing CSRF Token" you must send X-CSRF-TOKEN in the header this could be done like this

Screen Shot 2020-11-27 at 12 15 40 Screen Shot 2020-11-27 at 12 17 12