最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to configure HSTS using application.yaml file in spring boot? - Stack Overflow

programmeradmin5浏览0评论

I am trying to add HSTS to my application response headers in a spring boot app (V3.2.0). I don't want to change the code and have to redeploy the app if it can be done by just changing the config files.

I know that it can be done by updating SecurityFilterChain from the source. I am sure that there must be a way using yaml files as well. I just couldn't find it in the documentation: .html#servlet-headers-hsts.

发布评论

评论列表(0)

  1. 暂无评论