I'm using the Drupal IOS SDK https://github.com/kylebrowning/drupal-ios-sdk and now I'm having a problem with CSRF Validation Issue. I followed the methods according this URL https://github.com/kylebrowning/drupal-ios-sdk/wiki/drupal-ios-sdk-2.0

I got no problem with logging in to my Drupal but after logging in, whenever I try to trigger any method such as getting a node method it gives me CSRF Valdation failed 401 as an error instead. I've been searching for the solution over two weeks now. Still got no clue to get rid of it.

If anyone would provide me a solution of this issue, I would be very appreciated.

Thank you very for your help.

有帮助吗?

解决方案

I've finally able to get rid of the CSRF validation failed by editing the AFHTTPClient files. All I need to do is to change the content of the postpath, deletepath, and putpath by using the contents in DIOSCSRFAFHTTPClient instead.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top