Authenticate user stalls on 302 after POST is successful

63 views
Skip to first unread message

tiggums B

unread,
Aug 27, 2020, 8:35:06 PM8/27/20
to Django users
Hello,

SUMMARY:
During user authentication, POST is successful but will stall on the 302 redirect.

INFO:
On Chrome(85.0.4183.83)
Django 2.1 & Django 3.1
DEBUG = True, 
Happens rarely on HTTPS live-servers

STEPS TO REPRODUCE:
  1. On chrome browser, run manage.py runserver
  2. Using a custom AUTH_USER_MODEL, authenticate a user
  3. Local machine will return "POST / HTTP/1.1" 302 0 and stall here
  4. Refreshing page will return GET 200
  5. All following authentication/redirects will work normally

WHAT I'VE TRIED:
Set CSRF_COOKIE_SAMESITE = 'Strict' as indicated by Stack overflow
Cleared Cookies before-hand
Works on Microsoft Edge(84.0.522.63)
Does not happen on live servers launched 

RESOURCE:

QUESTIONS:
Has anyone else encountered this issue?
Has anyone else found a solution that works?



Dylan Reinhold

unread,
Aug 27, 2020, 10:15:29 PM8/27/20
to django...@googlegroups.com
I have the same thing on a few small sites I have. I had assumed it was something I did.

I asked about it last month or so and did not get anyone saying they also see it.
I had even built a new project at that time to test and saw the same thing.

As they are sites just for me, I just resorted to clicking submit and wait 5 seconds then refresh the admin page and i am in.

I just tried in firefox and it did not freeze like chrome.

Dylan

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/af5bbd03-7349-428b-b9cb-d76505095623n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages