Class ServerHttpSecurity.HeaderSpec.FrameOptionsSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.FrameOptionsSpec
-
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
public final class ServerHttpSecurity.HeaderSpec.FrameOptionsSpec extends java.lang.Object
Configures frame options response header
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity.HeaderSpec
disable()
Disables frame options response headerServerHttpSecurity.HeaderSpec
mode(XFrameOptionsServerHttpHeadersWriter.Mode mode)
The mode to configure.
-
-
-
Method Detail
-
mode
public ServerHttpSecurity.HeaderSpec mode(XFrameOptionsServerHttpHeadersWriter.Mode mode)
The mode to configure. Default isXFrameOptionsServerHttpHeadersWriter.Mode.DENY
- Parameters:
mode
- the mode to use- Returns:
- the
ServerHttpSecurity.HeaderSpec
to configure
-
disable
public ServerHttpSecurity.HeaderSpec disable()
Disables frame options response header- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-
-