I'm proposing to update your views and templates for supporting csrf....
Many thanks,

Serge


+380 636150445
skype: skhohlov


On Mon, Mar 17, 2014 at 5:05 PM, Gkpetrak <gkpet...@gmail.com> wrote:
> 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
>
>
> --
> 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/06b5902c-9281-4aa1-9736-dbf2e1c98e1b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CADTRxJM3v6%2BfdSrA_%3DoEzzA%2ByRjLJsUCU9bzx2jxE5HoK-hAPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to