Opened 5 years ago

Closed 5 years ago

#30433 closed Bug (needsinfo)

Authentication system is not working with Google Chrome for django 2.1 and 2.2.1.

Reported by: Anurag Gundappa Owned by: nobody
Component: CSRF Version: 2.2
Severity: Normal Keywords: login, CSRF
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Anurag Gundappa)

I am using django 2.2.1 for my personal project . It is observed that django admin and custom user login works fine with Firefox but when tried to login with same URL on Google Chrome version 74, that doesn't works and throws CSRF token error. I experienced this issue on Windows 10 and Ubuntu 19.04. I could not even sign up for djangoproject with Google chrome.

I have hosted same project on heroku and pythonanywhere but still the login behaviour was same. Django 2.1 and 2.2.1 are only allowing user login from Firefox and not with Chrome. I double checked my Login views but there is no problem with my views . TO verify this I created new project with django 2.0 and user login is working as expected with FIrefox and Chrome both. At first I thought login only working with default browser so I tried setting Chrome as my default browser but no luck.

On Windows 10 I could only login to my project with Microsoft Edge but not with Chrome.

Attachments (2)

django bug.png (51.2 KB ) - added by Anurag Gundappa 5 years ago.
The screenshot showing sign up error on djangoproject with Chrome
django bug2.png (114.4 KB ) - added by Anurag Gundappa 5 years ago.
Login failure on chrome for my project

Download all attachments as: .zip

Change History (5)

by Anurag Gundappa, 5 years ago

Attachment: django bug.png added

The screenshot showing sign up error on djangoproject with Chrome

by Anurag Gundappa, 5 years ago

Attachment: django bug2.png added

Login failure on chrome for my project

comment:1 by Anurag Gundappa, 5 years ago

Description: modified (diff)
Triage Stage: UnreviewedAccepted

comment:2 by Anurag Gundappa, 5 years ago

Triage Stage: AcceptedUnreviewed

comment:3 by Mariusz Felisiak, 5 years ago

Resolution: needsinfo
Severity: Release blockerNormal
Status: newclosed
Summary: Authentication system is not working with Google Chrome for django 2.1 and 2.2.1Authentication system is not working with Google Chrome for django 2.1 and 2.2.1.

Thanks for the report, however login on Chrome browser works for me with Django 2.1, 2.2, and on master. Can you provide an example project to reproduce this issue? Maybe there is some problem with session engine, or cookie settings etc., but it's hard to tell without details or an example project.

You should start from one of support channels.

Note: See TracTickets for help on using tickets.
Back to Top