Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-25 Thread Mark Gensler
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 dhana...@gmail.com wrote:

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
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, wrote: > Check your template, immediately after the opening tag add > {% csrf_token %} > If you have it already, kindly check to ensure it's correctly spelt

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-23 Thread Nagaraja Tuticorin
Make your database as a public make format of database chmod www-data=www-data ./filename On Wed, 23 Nov, 2022, 5:28 am Carlos Roberto, 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

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Chukwudi Onwusa
Check your template, immediately after the 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 wrote: > Hi everyone! > > I use ngrok to make my

Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
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

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Sebastian Goll
On Thu, 10 May 2012 23:56:50 -0700 (PDT) Johan wrote: > Hi thanks for the quick reply. After some more investigation I am quite > sure that this is exactly the issue. Thanks again for the quick reply. Now > to just find an elegant way to let the user know that they need to

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-11 Thread Johan
Hi thanks for the quick reply. After some more investigation I am quite sure that this is exactly the issue. Thanks again for the quick reply. Now to just find an elegant way to let the user know that they need to have Cookies enabled to access my site :) On Thursday, 10 May 2012 18:24:13

Re: Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Nikolas Stevenson-Molnar
Django uses cookies for CSRF. Is it possible these two users have cookies disabled? https://docs.djangoproject.com/en/dev/ref/contrib/csrf/#how-it-works _Nik On 5/10/2012 7:56 AM, Johan wrote: > Hi > > Does anybody maybee have some pointers for me? I have a site up and > running and it has

Only Two Users Get : Forbidden (403) CSRF verification failed. Request aborted. Options

2012-05-10 Thread Johan
Hi Does anybody maybee have some pointers for me? I have a site up and running and it has worked perfectly for hundreds of users. Except that today I got two users (from the same company, although others from the same company has used it perfectly well) who are getting the [CSRF verification

Re: Forbidden (403) CSRF verification failed. Request aborted.

2011-01-27 Thread hank23
OK. I'll check all of that out, including the article. In the meantime can you possibly explain the "title" field shown coded on the form in the Django file upload document? It's shown coded on the form but I don't think it's referenced anymore after that in the document and I would like to know

Re: Forbidden (403) CSRF verification failed. Request aborted.

2011-01-25 Thread Jonas Geiregat
Hey, I've also struggled with CSRF for a while. Maybe I can give you some guidance. > you need to ensure: > > •The view function uses RequestContext for the template, instead of > Context. > •In the template, there is a {% csrf_token %} template tag inside each > POST form that targets an

Forbidden (403) CSRF verification failed. Request aborted.

2011-01-25 Thread hank23
I'm trying to write the code and implement a file upload screen based on this document: http://docs.djangoproject.com/en/1.2/topics/http/file-uploads I'm getting the following error: Forbidden (403) CSRF verification failed. Request aborted. Help Reason given for failure: CSRF token

Re: Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-20 Thread Daniel Roseman
On 17 December 2010 19:46, hank23 wrote: > Thanks for the note. Below is the screen code again which I've changed > a little, plus the two views which deal with it. Let me know if you > need anything else. Here's the screen code: > > Add Poll Question Screen > > {% if

Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-17 Thread Daniel Roseman
It's not just the view that processes the form that needs RequestContext - the one that generates it does too. Normally these are the same view, but it looks from your code that you are posting to a different view. Perhaps you could show the code of the other one and we'll see what is wrong

Forbidden (403) - CSRF verification failed. Request aborted.

2010-12-17 Thread hank23
I have pretty much completed the intro. tutorial for django. I'm now trying to add some actual updating screens to the existing site, to experiment and also to try to figure out more how everything works. I'm currently trying to code an "addpoll" screen which I've coded to look like this: Add