Try adding your ngrok domain to the list of CSRF_TRUSTED_ORIGINS: 
https://docs.djangoproject.com/en/4.1/ref/settings/#csrf-trusted-origins

E.g. assuming you're using https:

CSRF_TRUSTED_ORIGINS = ["https://*.ngrok.io";]

On Wednesday, November 23, 2022 at 2:22:14 PM UTC [email protected] wrote:

> Make your database as a public make format of database chmod 
> www-data=www-data ./filename 
>
> On Wed, 23 Nov, 2022, 7:33 am Chukwudi Onwusa, <[email protected]> wrote:
>
>> Check your template, immediately after the <form> opening tag add  
>> {% csrf_token %}
>> If you have it already, kindly check to ensure it's correctly spelt and 
>> placed and then restart your server.
>> Best Regards.
>>
>> On Wed, Nov 23, 2022, 00:58 Carlos Roberto <[email protected]> wrote:
>>
>>> Hi everyone!
>>>
>>> I use ngrok to make my projects available in django. I'm having trouble 
>>> accessing the admin page. After I enter the username and password I get the 
>>> error 403.
>>>
>>> Has anyone had the same problem and could help me?
>>>
>>> Regards
>>>
>>>
>>> -- 
>>> 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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/django-users/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> On Nov 23, 2022 00:58, "Carlos Roberto" <[email protected]> wrote:
>>
>> Hi everyone!
>>
>> I use ngrok to make my projects available in django. I'm having trouble 
>> accessing the admin page. After I enter the username and password I get the 
>> error 403.
>>
>> Has anyone had the same problem and could help me?
>>
>> Regards
>>
>>
>>
>> -- 
>> 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/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/de5c4738-f540-4596-b1bf-0b0b16aabbf2n%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/CAGoV8nm8QO1LKP4x7%2Bm%3DuM%3DMzdTryt-DYQOw%2BsdJREnm18c1gQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/django-users/CAGoV8nm8QO1LKP4x7%2Bm%3DuM%3DMzdTryt-DYQOw%2BsdJREnm18c1gQ%40mail.gmail.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/680fc4f4-8b32-445d-9819-f93f00925ab5n%40googlegroups.com.

Reply via email to