Hello,
I'm developing an app using django and Openlayers javascript code. When I'm trying to post something via openlayers javascript code, it raises a 403 FORBIDDEN ERROR.
I don't use a form in my html file, the post applied by openlayers code. It runs successfully, only if I remove the 'django.middleware.csrf.CsrfViewMiddleware' from my settings.py.
How can I fix it ?
And how unprotected I am, without the 'django.middleware.csrf.CsrfViewMiddleware' in my settings.py ?
Thank you in advance,
George
-- I'm developing an app using django and Openlayers javascript code. When I'm trying to post something via openlayers javascript code, it raises a 403 FORBIDDEN ERROR.
I don't use a form in my html file, the post applied by openlayers code. It runs successfully, only if I remove the 'django.middleware.csrf.CsrfViewMiddleware' from my settings.py.
How can I fix it ?
And how unprotected I am, without the 'django.middleware.csrf.CsrfViewMiddleware' in my settings.py ?
Thank you in advance,
George
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+unsubscribe@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/06b5902c-9281-4aa1-9736-dbf2e1c98e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment