WebFaction
Community site: login faq

I'm using Django, everytime I try to use AJAX the server returns a 403 error and not happens. It works perfectly local.

I have no clue what is the problem, what do you guys think?

asked 05 Mar '11, 15:35

yurimalheiros
111
accept rate: 0%


In Django 1.2.5, CSRF protection was enabled for AJAX. You can read more about CSRF protection here:

http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#module-django.middleware.csrf

permanent link

answered 05 Mar '11, 15:39

aaronh ♦♦
1.3k3
accept rate: 34%

Thank you. It works.

(05 Mar '11, 16:53) yurimalheiros
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×909
×12
×8

question asked: 05 Mar '11, 15:35

question was seen: 4,897 times

last updated: 05 Mar '11, 16:53

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM