Hi Rafał,
On 03/13/2015 12:42 PM, Rafał Pitoń wrote:
> On Friday, March 13, 2015 at 4:14:55 PM UTC+1, Florian Apolloner wrote:
>
> I am pretty sure you can configure angular to send the token in the
> header. Either way, we are not going to try and load json, just we
> can't find a to
Hi,
for me the following snippets work:
var testRun = angular.module('testRun', ['ui.bootstrap']);
testRun.config(function($httpProvider) {
$httpProvider.defaults.xsrfCookieName = 'csrftoken';
$httpProvider.defaults.xsrfHeaderName = 'X-CSRFToken';
});
See:
https://github.com/thoreg/test_executo
Hi,
Thats pretty much the use case I have (accessing an API with no template).
I couldn't get angular to play nice even with the below settings so I'd
resorted to POST-ing the token but then I encountered the POST dict being
turned into JSON.
Appreciate that this short-coming is not django so
On Friday, March 13, 2015 at 4:14:55 PM UTC+1, Florian Apolloner wrote:
>
> I am pretty sure you can configure angular to send the token in the
> header. Either way, we are not going to try and load json, just we can't
> find a token otherwise…
>
> Cheers,
> Florian
>
Pretty much, you have to te
I am pretty sure you can configure angular to send the token in the header.
Either way, we are not going to try and load json, just we can't find a
token otherwise…
Cheers,
Florian
--
You received this message because you are subscribed to the Google Groups
"Django developers (Contributions
Hi,
Not sure if this breaks any RFC’s or there’s another valid reason why this
doesn’t exist already but I’ve noticed that certain client frameworks
(looking at you angular) have a tendency to put POST data in the request
body.
For example, the following angular code
$http( {
method: