HTTP Status 403 - Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header解决方法

HTTP Status 403 - Invalid CSRF Token 'null' was found on the request parameter '_csrf' or header 'X-CSRF-TOKEN'.

解决方法

  • type Status report
  • message Invalid CSRF Token ‘null’ was found on the request parameter ‘_csrf’ or header ‘X-CSRF-TOKEN’.
  • description Access to the specified resource has been forbidden.
    在这里插入图片描述

CSRF disabled="true" 关闭CSRF ,如果不加会出现错误

// 
<!-- 关闭/禁用 SCRF -->
<csrf disabled="true"/>

CSRF(Cross-site request forgery)跨站请求伪造,也被称为“One Click Attack”或者Session Riding,通常缩写为CSRF或者XSRF,是一种对网站的恶意利用。

发布了29 篇原创文章 · 获赞 21 · 访问量 6014

猜你喜欢

转载自blog.csdn.net/Lance_welcome/article/details/98256994