Prevent clickjacking
ProprietaryThe frame-ancestors directive can be used in a Content-Security-Policy HTTP response header to indicate whether or not a browser should be allowed to render a page in a <frame> or <iframe>. Sites can use this to avoid Clickjacking attacks by ensuring that their content is not embedded into other sites.
org. openrewrite. java. security. spring. PreventClickjackingOptional
onlyIfSecurityConfigBoolean
Only patch existing implementations of WebSecurityConfigurerAdapter.
mod run . --recipe= org. openrewrite. java. security. spring. PreventClickjackingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.