Package org.openwms.gateway
Class CORSConfig
java.lang.Object
org.openwms.gateway.CORSConfig
- All Implemented Interfaces:
org.springframework.web.reactive.config.WebFluxConfigurer
@Configuration
@EnableWebFluxSecurity
public class CORSConfig
extends Object
implements org.springframework.web.reactive.config.WebFluxConfigurer
A CORSConfig.
- Author:
- Heiko Scherrer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCorsMappings
(org.springframework.web.reactive.config.CorsRegistry registry) org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandler
org.springframework.security.web.server.SecurityWebFilterChain
springSecurityFilterChain
(org.springframework.security.config.web.server.ServerHttpSecurity http) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.web.reactive.config.WebFluxConfigurer
addFormatters, addResourceHandlers, configureArgumentResolvers, configureContentTypeResolver, configureHttpMessageCodecs, configurePathMatching, configureViewResolvers, getMessageCodesResolver, getValidator, getWebSocketService
-
Constructor Details
-
CORSConfig
public CORSConfig()
-
-
Method Details
-
addCorsMappings
public void addCorsMappings(org.springframework.web.reactive.config.CorsRegistry registry) - Specified by:
addCorsMappings
in interfaceorg.springframework.web.reactive.config.WebFluxConfigurer
-
springSecurityFilterChain
@Bean public org.springframework.security.web.server.SecurityWebFilterChain springSecurityFilterChain(org.springframework.security.config.web.server.ServerHttpSecurity http) -
logoutSuccessHandler
public org.springframework.security.web.server.authentication.logout.ServerLogoutSuccessHandler logoutSuccessHandler(String uri)
-