CSRF validation failed in Drupal

风格不统一 提交于 2019-12-06 11:24:45

You need to pass along the CSRF token in the header of the service request.

To retrieve the token, navigate to:

http://www.example.com/?q=services/session/token

Copy the token to your clipboard.

Then in FireFox poster, using the "Headers" tab, add this name and value:

  • Name: X-CSRF-Token
  • Value: [paste-the-token-value-here]

Now when you make requests, the token will be passed along correctly with FireFox Poster.

Here's a detailed blog post outlining this topic:

http://tylerfrankenstein.com/code/drupal-services-csrf-token-firefox-poster

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