Open giorgio79 opened 10 years ago
This is probably a server configuration problem. Are you using Services 3.5 with Session Authentication? Have you enabled the correct request parser and mime types in your service?
Thx for coming back. I will try to double check, but meanwhile the alternative drupal js client worked in the same environment without any changes (a simple html on my desktop comp) https://github.com/travist/drupal.api.js, so went with that for now.
Are you also logged into the Drupal web interface in the same browser? I just had this happen and drupal-client works if I log out of Drupal from the web interface first.
Yep, I am! Would be great if the session could be detected by the script.
It would be a nice upgrade if that could be detected yes - since you proberly still could be using the drupal installation af your backend for adding content. Logging out of backend and in on frontend to see content just doesn't work well
Hello, I am trying the sample code in a browser, and always getting: CSRF validation failed.
I also tried drupal.getCsrfToken ( function(e) { console.log(e); });
and I am getting a valid CSRF token. Any tips why this is failing?