Html form like action form use

On Fri, Jun 17, 2022, 21:23 Mike Kilmer <[email protected]> wrote:

> By the way, using Django 4.0.
>
> Thanks, Rahul.
>
> I believe this is a default Django template, and wouldn't the fact the the
> page/form creates a cookie be a sign that that action triggered by `{%
> crsf_token %}` has taken place?
>
> On Friday, June 17, 2022 at 10:51:24 AM UTC-5 [email protected] wrote:
>
>>  {% crsf_token %} use this action form down
>>
>>
>> On Fri, Jun 17, 2022, 20:47 Mike Kilmer <[email protected]> wrote:
>>
>>> Hi.
>>>
>>> I'm fairly new to Django. Here's what I need insight on:
>>>
>>> Local server, no issue.
>>>
>>> On production: CSRF 403 error on login.
>>>
>>>         There's a cookie loaded on the login page containing csrftoken:
>>> pAFeeUI8YFXZ2PKRYxOTX1qz4Xgto42WVNi7FFvBlZDqcFLwQ2rdQvVeZBHFSpLW
>>>
>>>         (Local and Session storage are empty)
>>>
>>>         In the FORM element:
>>>
>>>         <input type="hidden" name="csrfmiddlewaretoken"
>>> value="Vz4FiujD4qkLpxCwWNJU0HCWs4u0Qf4RrMHyJf66rK0cznDbOimeTb7BnIVckANR">
>>>
>>> Notice they don't match.
>>>
>>> I tried running ./migrate.py clearsessions.
>>>
>>> Once, yesterday, it seemed that the error did not occur in an Incognito
>>> Window, but today it persists even in an incognito window, as well as a
>>> different browser.
>>>
>>> One additional piece of information, I have allauth installed, but it
>>> doesn't seem to be correctly configured. It's login page is not loading.
>>>
>>> Additionally, the problem was there even when I removed allauth from
>>> Apps and Authentication Backends.
>>>
>>> Thanks much.
>>>
>>> –Mike
>>>
>>> --
>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/551AFE93-8B25-4CB9-8D3F-F1BF1EC4F585%40mzoo.org
>>> .
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/4522cbf1-cb66-49a2-b033-d438dd5b7200n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/4522cbf1-cb66-49a2-b033-d438dd5b7200n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACvpWiqRd3aW6oRBRfxVoc3LpKr%3DtuMKhsYT37OPXDFrsL6JPA%40mail.gmail.com.

Reply via email to