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.