CSRF issue in default login

2022-06-17 Thread Mike Kilmer
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 stor

Re: CSRF issue in default login

2022-06-17 Thread rahul sharma
{% crsf_token %} use this action form down On Fri, Jun 17, 2022, 20:47 Mike Kilmer 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

Re: CSRF issue in default login

2022-06-17 Thread rahul sharma
Html form like action form use On Fri, Jun 17, 2022, 21:23 Mike Kilmer 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 %}

Re: CSRF issue in default login

2022-06-17 Thread mike vickers
I was having a similar issue after setting up https with certbot. After searching around, I found adding this to settings worked. CSRF_TRUSTED_ORIGINS = ["https://yourdomain.com";, "https://www.yourdomain.com";] I'd be curious to hear from others, because I'm *not *an expert in how to best set up

Re: CSRF issue in default login

2022-06-17 Thread Mike Kilmer
That sounds hopeful. Where do you put that config? Settings.py? On Friday, June 17, 2022 at 12:25:29 PM UTC-5 vicker...@gmail.com wrote: > I was having a similar issue after setting up https with certbot. After > searching around, I found adding this to settings worked. > > CSRF_TRUSTED_ORIGINS

Re: CSRF issue in default login

2022-06-17 Thread Abul Kashim 1811949642
I have basic to intermediate knowledge on Django, but don't find any entry level job to master my django knowledge in my country, can any one suggest me where I can get some project or industry level job in django , please. I am badly need that On Friday, June 17, 2022 at 11:29:04 PM UTC+6 Mike

Re: CSRF issue in default login

2022-06-17 Thread Mike Kilmer
If you're interested in some piecemeal work, I could use some help. mike at mzoo.org. On Friday, June 17, 2022 at 3:10:16 PM UTC-5 181...@northsouth.edu wrote: > I have basic to intermediate knowledge on Django, but don't find any entry > level job to master my django knowledge in my country, c