For FastAPI I am using depends and verifySession a...
# support-questions-legacy
j
For FastAPI I am using depends and verifySession and its working fine locally for get + post requests but in production only get requests are working. I thought it might be something to do with the fact that the post request has and Content-Type header so i added that to init but its still throwing a 401 error code
r
Hey! This usually happens if you don’t provide the anti CSRF token in the request
Are you querying via postman?
j
I am querying via swagger ui
r
I see. So yes. Please make sure that the tokens r set correctly
sAccessToken Cooke. sIdRefreshToken cookie
anti CSRF token if provided during login
rid header
j
Thank you!!
2 Views