← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1395270] [NEW] POST instantiation for Django-Angular

 

Public bug reported:

We currently need to include a CSRF token in our form if we want to POST
to a Django view. Furthermore, we need to change the content-type to
'application/x-www-form-urlencoded' before we can POST. This is
cumbersome and should really be a global setting.

http://www.daveoncode.com/2013/10/17/how-to-make-angularjs-and-django-play-nice-together/
http://django-angular.readthedocs.org/en/latest/csrf-protection.html?highlight=post#set-header-with-x-csrftoken-via-cookie
for more details.

** Affects: horizon
     Importance: Undecided
     Assignee: Thai Tran (tqtran)
         Status: In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1395270

Title:
  POST instantiation for Django-Angular

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  We currently need to include a CSRF token in our form if we want to
  POST to a Django view. Furthermore, we need to change the content-type
  to 'application/x-www-form-urlencoded' before we can POST. This is
  cumbersome and should really be a global setting.

  http://www.daveoncode.com/2013/10/17/how-to-make-angularjs-and-django-play-nice-together/
  http://django-angular.readthedocs.org/en/latest/csrf-protection.html?highlight=post#set-header-with-x-csrftoken-via-cookie
  for more details.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1395270/+subscriptions


Follow ups

References