CSRF validation IOS SDK DRUPAL [closed]

六月ゝ 毕业季﹏ 提交于 2019-12-14 00:06:23

问题


I'm having problem with error 401 CSRF Validation failed By the way, i'm using Drupal IOS SDK. I managed to do the login and register to my drupal website. However, after logging in I couldn't do task like Changing Password or Logging Out due to the error of 401 CSRF Validation failed. I have done alot of research about this and know that I have to pass token along with any request to prevent this from happening. Still I couldnt manage this surpass this point.

Please Help.


回答1:


I've fixed the problem now, by fixing up the code in AFHTTPCLIENT to make it to get the Token and send that CSRF token back to the server whenever the requests such as post, delete is fired.



来源:https://stackoverflow.com/questions/22808442/csrf-validation-ios-sdk-drupal

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!