如何禁用特定端点的会话 Cookie?

huangapple 未分类评论47阅读模式
英文:

How to disable session cookies for a particular endpoint?

问题

我有Spring Web MVC的端点,并配置了Spring Security。会话已启用,第一个请求/响应携带一个"Set-Cookie"头。

但是我希望我的一个特定端点不要返回这个头部。我该如何进行配置?

英文:

I have Spring web mvc endpoints, and spring security configured. Session is enabled and the first request/response carries a "Set-Cookie" header.

But I want my one particular endpoint to not return this header. How can I configure it?

huangapple
  • 本文由 发表于 2020年7月24日 06:38:06
  • 转载请务必保留本文链接:https://java.coder-hub.com/63064116.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定