In my iOS App after first install, when I login with email all requests work perfect. But when I login with FB I get the error CSRF Failed: CSRF token missing or incorrect. when I try to send POST request (Only POST. GET reqs work perfectly). Even if I loged out from FB and login again with email, I get the same error.
I've read that I must check Cookies to find CSRF token. But in Cookies with http://ift.tt/nEfuzV I found only 3 values.
2015-04-02 18:41:59.716 GolfProAssistant[4128:1383460] Cookie: datr
2015-04-02 18:41:59.717 GolfProAssistant[4128:1383460] Cookie: reg_fb_gate
2015-04-02 18:41:59.718 GolfProAssistant[4128:1383460] Cookie: reg_fb_ref
So I don't know where I must look for reason of error: on Backend or in iOS app.
P.S. Android app work perfectly. And doesn't send any CSRF tokens.
P.P.S. Backend stand on django.
Aucun commentaire:
Enregistrer un commentaire