CSRF Verification error appeared after I changed DNS
Hi. I have been using Django successfully for a few days now. I was running my django application on an Amazon Web Service machine. I was assigned some arbitrary DNS name that looked like this: http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. My Django app was working find with my model and several views with templates. Last night, I went out and bought a real DNS name from register.com and have that DNS name now pointing to my django application. Since I made that change however, when I submit my django form, I get the following CSRF error: Forbidden (403) CSRF verification failed. Request aborted. I tried clearing the cookies in my browser, but that didn't help. I even tried it from other machines that I had never tried before. But still the same problem. Why did assigning a new DNS name for this IP address cause this CSRF error? And how do I get rid of it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ooaNm-tytpkJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: CSRF Verification error appeared after I changed DNS
BTW, I forgot to mention that my template contains the following HTML: {% csrf_token %} E-mail: On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django application on an Amazon Web Service machine. > I was assigned some arbitrary DNS name that looked like this: > http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. > My Django app was working find with my model and several views with > templates. > > Last night, I went out and bought a real DNS name from register.com and > have that DNS name now pointing to my django application. > Since I made that change however, when I submit my django form, I get the > following CSRF error: > > > Forbidden (403) > > CSRF verification failed. Request aborted. > > > > I tried clearing the cookies in my browser, but that didn't help. I even > tried it from other machines that I had never tried before. But still the > same problem. > > Why did assigning a new DNS name for this IP address cause this CSRF > error? And how do I get rid of it? > > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/bfNeyTDIf2AJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: CSRF Verification error appeared after I changed DNS
Did you check your cookies, is there any csrftoken ? Did you change SESSION_COOKIE_DOMAIN ? On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: > > BTW, I forgot to mention that my template contains the following HTML: > > {% csrf_token %} > > E-mail: type="text" class="required" name="email" maxlength="75" /> > > > > > > On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: >> >> >> Hi. >> >> I have been using Django successfully for a few days now. I was running >> my django application on an Amazon Web Service machine. >> I was assigned some arbitrary DNS name that looked like this: >> http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. >> My Django app was working find with my model and several views with >> templates. >> >> Last night, I went out and bought a real DNS name from register.com and >> have that DNS name now pointing to my django application. >> Since I made that change however, when I submit my django form, I get the >> following CSRF error: >> >> >> Forbidden (403) >> >> CSRF verification failed. Request aborted. >> >> >> >> I tried clearing the cookies in my browser, but that didn't help. I even >> tried it from other machines that I had never tried before. But still the >> same problem. >> >> Why did assigning a new DNS name for this IP address cause this CSRF >> error? And how do I get rid of it? >> >> >> -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/4iEX7t7Wt3kJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: CSRF Verification error appeared after I changed DNS
Yes, I checked my cookies and there is a csrftoken: jrQ4T0IZPqFpbjoPLlzJSnsEPQxzHAJh I didn't change the SESSION_COOKIE_DOMAIN value. There is no such setting in my settings.py. I did no On Tuesday, January 8, 2013 8:09:03 PM UTC-5, Amirouche wrote: > > Did you check your cookies, is there any csrftoken ? > > Did you change SESSION_COOKIE_DOMAIN ? > > On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: >> >> BTW, I forgot to mention that my template contains the following HTML: >> >> {% csrf_token %} >> >> E-mail:> type="text" class="required" name="email" maxlength="75" /> >> >> >> >> >> >> On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: >>> >>> >>> Hi. >>> >>> I have been using Django successfully for a few days now. I was running >>> my django application on an Amazon Web Service machine. >>> I was assigned some arbitrary DNS name that looked like this: >>> http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. >>> My Django app was working find with my model and several views with >>> templates. >>> >>> Last night, I went out and bought a real DNS name from register.com and >>> have that DNS name now pointing to my django application. >>> Since I made that change however, when I submit my django form, I get >>> the following CSRF error: >>> >>> >>> Forbidden (403) >>> >>> CSRF verification failed. Request aborted. >>> >>> >>> >>> I tried clearing the cookies in my browser, but that didn't help. I even >>> tried it from other machines that I had never tried before. But still the >>> same problem. >>> >>> Why did assigning a new DNS name for this IP address cause this CSRF >>> error? And how do I get rid of it? >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/wFsEG03Qeu0J. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: CSRF Verification error appeared after I changed DNS
On Wednesday, January 9, 2013 3:21:08 AM UTC+1, Saqib Ali wrote: > > Yes, I checked my cookies and there is a csrftoken: > jrQ4T0IZPqFpbjoPLlzJSnsEPQxzHAJh > I didn't change the SESSION_COOKIE_DOMAIN value. There is no such setting > in my settings.py. > > I don't know then : / Maybe restart gunicorn or whatever runs django... > I did no > > On Tuesday, January 8, 2013 8:09:03 PM UTC-5, Amirouche wrote: >> >> Did you check your cookies, is there any csrftoken ? >> >> Did you change SESSION_COOKIE_DOMAIN ? >> >> On Wednesday, January 9, 2013 1:19:35 AM UTC+1, Saqib Ali wrote: >>> >>> BTW, I forgot to mention that my template contains the following HTML: >>> >>> {% csrf_token %} >>> >>> E-mail:>> type="text" class="required" name="email" maxlength="75" /> >>> >>> >>> >>> >>> >>> On Tuesday, January 8, 2013 6:44:49 PM UTC-5, Saqib Ali wrote: Hi. I have been using Django successfully for a few days now. I was running my django application on an Amazon Web Service machine. I was assigned some arbitrary DNS name that looked like this: http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. My Django app was working find with my model and several views with templates. Last night, I went out and bought a real DNS name from register.comand have that DNS name now pointing to my django application. Since I made that change however, when I submit my django form, I get the following CSRF error: Forbidden (403) CSRF verification failed. Request aborted. I tried clearing the cookies in my browser, but that didn't help. I even tried it from other machines that I had never tried before. But still the same problem. Why did assigning a new DNS name for this IP address cause this CSRF error? And how do I get rid of it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/AYFEJ1viWPMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
CSRF Verification error appeared after I changed DNS ver2
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/92ba6507-37ab-44b7-9ec1-f51c193d7552%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: CSRF Verification error appeared after I changed DNS
I got the same kind of an error. In my case, I got u'CSRF_COOKIE' instead of 'csrf' in request. I appreciate any solution for this issue. 2013年1月9日水曜日 8時44分49秒 UTC+9 Saqib Ali: > > > Hi. > > I have been using Django successfully for a few days now. I was running my > django application on an Amazon Web Service machine. > I was assigned some arbitrary DNS name that looked like this: > http://ec2-XXX.XXX.XXX.XXX.compute-1.amazonaws.com. > My Django app was working find with my model and several views with > templates. > > Last night, I went out and bought a real DNS name from register.com and > have that DNS name now pointing to my django application. > Since I made that change however, when I submit my django form, I get the > following CSRF error: > > > Forbidden (403) > > CSRF verification failed. Request aborted. > > > > I tried clearing the cookies in my browser, but that didn't help. I even > tried it from other machines that I had never tried before. But still the > same problem. > > Why did assigning a new DNS name for this IP address cause this CSRF > error? And how do I get rid of it? > > > -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/219853c2-2919-43c2-b1e1-977bc542bbb6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
CSRF Verification error appeared after I changed DNS ver2
Hi, I got the same kind of an error as below. CSRF Verification error appeared after I changed DNS https://groups.google.com/forum/#!msg/django-users/dQXdPeAd6Fg/wFsEG03Qeu0J And there is no solution written in there. Hope someone can help me. Versions Djagno 1.6 python2.7 In my case, I got u'CSRF_COOKIE' instead of 'csrf' in request. I appreciate any solution for this issue. -- 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 django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/11b39fbc-6834-4f41-ba9a-502d464071bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.