Cannot post node as authenticated user from phonegap
Posted by pmunch on March 16, 2015 at 12:46am
Hi all,
I have spent hours trying to figure this out as well as finding relevant code examples, I'm stuck...
I'm building a basic phonegap app that should allow to post a node as authenticated user. I can successfully login, but I cannot further post as this authenticated user thru X-CSRF-Token: I always get 403 - "Access denied for user 001" ...
I summed up the steps I follow in the dummy loginAndPost() function below.
<
pre>
function loginAndPost() {
// Set some vars
var username = "001";
var password = "001";
var server_uri = "http://my-drupal-website";
Read more