【问题标题】:spring boot cookie csrf namespring boot cookie csrf 名称
【发布时间】:2015-10-02 14:16:40
【问题描述】:

我有 bean 遵循本教程。

http://www.codesandnotes.be/2014/10/31/restful-authentication-using-spring-security-on-spring-boot-and-jquery-as-a-web-client/#comment-515

而且效果很好,但我不知道helloween cookie 名称的设置位置。如何覆盖 X-CSRF-TOKEN 的名称?

【问题讨论】:

    标签: spring-security spring-boot


    【解决方案1】:

    它在 JavaScript 中处理。 For example:

    $.cookie('helloween', JSON.stringify(cookie));
    

    【讨论】:

      猜你喜欢
      • 2017-04-17
      • 2021-02-25
      • 2015-10-03
      • 2016-08-13
      • 2020-05-26
      • 2015-05-22
      • 2016-06-19
      • 1970-01-01
      • 2014-03-03
      相关资源
      最近更新 更多