Re: CSRF verification failed when I use smart phone

2019-06-26 Thread Anirudh Jain
Are you using it as a website or mobile app? If it is website then try logging out and login again. You might have logged in as another user or it might be a caching problem. On Wed, 26 Jun 2019, 08:31 Aldian Fazrihady, wrote: > Please make sure csrftoken cookie is returned to the Android app >

Re: CSRF verification failed when I use smart phone

2019-06-25 Thread Aldian Fazrihady
Please make sure csrftoken cookie is returned to the Android app Regards, Aldian Fazrihady On Wed, 26 Jun 2019, 09:46 Robert F., wrote: > Make sure you aren't blocking cookies on whatever device is giving you > problems. You'll get this error if you are blocking them. > > On Tuesday, January

Re: CSRF verification failed when I use smart phone

2019-06-25 Thread Robert F.
Make sure you aren't blocking cookies on whatever device is giving you problems. You'll get this error if you are blocking them. On Tuesday, January 6, 2015 at 1:09:46 AM UTC-8, Sugita Shinsuke wrote: > > Hello. > > When I use Django via my smart phone Android and iOS. > The error sometimes occu

Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Michael Greer
BTW, it turned out to be a cookie parsing error in python for us, only recently solved, in which Python incorrectly balked at parsing the "[" character in cookie values and then threw out the remaining cookies. This has been fixed in 2.7.10 (and new versions of 3) but is not yet in Debian stable.

Re: CSRF verification failed when I use smart phone

2015-06-26 Thread Wim Feijen
Thanks Gergely, That solved it for me. Wim On Sunday, 31 May 2015 09:58:32 UTC+2, Gergely Polonkai wrote: > > I had this error when I had two Django application with the same domain > and both with the same (default) CSRF cookie name. Changing the cookie name > to something different solved

Re: CSRF verification failed when I use smart phone

2015-05-31 Thread Gergely Polonkai
I had this error when I had two Django application with the same domain and both with the same (default) CSRF cookie name. Changing the cookie name to something different solved the issue. On 30 May 2015 22:30, "Michael Greer" wrote: > We have started seeing this behavior occasionally. No code ch

Re: CSRF verification failed when I use smart phone

2015-05-30 Thread Michael Greer
We have started seeing this behavior occasionally. No code change in this area, but sometimes (esp on phones) the CSRF cookie is wrong. Our guess is too many cookies on the domain, but it is difficult to prove this. Indeed, opening a new browser session resolves it... temporarily. -Mike On Tue

Re: CSRF verification failed when I use smart phone

2015-01-30 Thread Zach Borboa
Here's an example of the csrf cookie value obtained by typing document.cookie in the javascript console. -- You received this message because you are s

Re: CSRF verification failed when I use smart phone

2015-01-30 Thread Zach Borboa
What you want to compare is the expected token value and the token value the view received (via POST, PUT, DELETE, etc.). These values need to match. Printing out the token via {{ csrf_token }} in the template will show you the token that the view will receive when the form is submitted. This s

Re: CSRF verification failed when I use smart phone

2015-01-30 Thread Pouria M
Thanks Zach. What are your thoughts after this test? if they match or if they don't match On Wednesday, January 28, 2015 at 9:46:23 PM UTC-8, Zach Borboa wrote: > > For anyone trying to debug this issue, you may want to print out the > variable using {{ csrf_token }} as well as using {% csrf_tok

Re: CSRF verification failed when I use smart phone

2015-01-28 Thread Zach Borboa
For anyone trying to debug this issue, you may want to print out the variable using {{ csrf_token }} as well as using {% csrf_token %} on the form to verify the token is correct. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: CSRF verification failed when I use smart phone

2015-01-28 Thread Pouria M
Hi Everyone, I am facing a similar issue ... CSRF verification fails on IOS using chrome ... Appreciate any insights p On Friday, January 9, 2015 at 6:16:37 PM UTC-8, James Schneider wrote: > > Is the iframe sourced from the same domain as the main page that was > requested in the address ba

Re: CSRF verification failed when I use smart phone

2015-01-09 Thread James Schneider
Is the iframe sourced from the same domain as the main page that was requested in the address bar? Is the action for the form pointing at a different domain than the one that generated it? -James Mobile device could also be caching an incorrect csrf token. -- You received this message because yo

Re: CSRF verification failed when I use smart phone

2015-01-09 Thread Sugita Shinsuke
Hi Zach Borboa Thank you for replying. Do you mean that both of PC and Mobile device are caching an incorrect csrf token? I use iframe. Child frame html page uses form, and can it use csrf? 2015年1月9日金曜日 15時14分55秒 UTC+9 Zach Borboa: > > Mobile device could also be caching an incorrect csrf toke

Re: CSRF verification failed when I use smart phone

2015-01-09 Thread Sugita Shinsuke
Hello Abraham V. Thank you for replying. It is nice idea. But, PC version also sometimes happened. less than Mobile 2015年1月8日木曜日 20時09分11秒 UTC+9 Abraham Varricatt: > > Can it be possible that you are rendering a different template (without > CSRF) for the mobile version? > > -Abraham V. > > >

Re: CSRF verification failed when I use smart phone

2015-01-08 Thread Zach Borboa
Mobile device could also be caching an incorrect csrf token. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post t

Re: CSRF verification failed when I use smart phone

2015-01-08 Thread Abraham Varricatt
Can it be possible that you are rendering a different template (without CSRF) for the mobile version? -Abraham V. On Thursday, January 8, 2015 2:15:21 PM UTC+5:30, Sugita Shinsuke wrote: > > Hello Vijay Khemlani > > Thank you for replying. > But, of cause I appended the tag in my form like bel

Re: CSRF verification failed when I use smart phone

2015-01-08 Thread Sugita Shinsuke
Hello Vijay Khemlani Thank you for replying. But, of cause I appended the tag in my form like below {% csrf_token %} but I wonder about that using the iframe is bad. The form is child of iframe. I also checked Chrome's developer tool. The csrf token was saved in the cookie. 2015

Re: CSRF verification failed when I use smart phone

2015-01-06 Thread Vijay Khemlani
¿Did you include de {% csrf_token %} tag in the form? ¿Is it generating the corresponding hidden input tag in the html? On Tue, Jan 6, 2015 at 6:09 AM, Sugita Shinsuke wrote: > Hello. > > When I use Django via my smart phone Android and iOS. > The error sometimes occurred. > > Forbidden (403) >