Class WebSecurityConfig
java.lang.Object
net.andresbustamante.yafoot.users.web.config.WebSecurityConfig
@Configuration
@Profile({"development","production"})
@EnableWebSecurity
public class WebSecurityConfig
extends Object
Spring Security configuration for the users module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.cors.CorsConfigurationSource
Builds the bean having the CORS configuration for this Web application.org.springframework.security.web.SecurityFilterChain
filterChain
(org.springframework.security.config.annotation.web.builders.HttpSecurity http) Security configuration on URL.
-
Constructor Details
-
WebSecurityConfig
public WebSecurityConfig()
-
-
Method Details
-
filterChain
@Bean public org.springframework.security.web.SecurityFilterChain filterChain(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws Exception Security configuration on URL.- Parameters:
http
-- Returns:
- Security filter chain with updated configuration
- Throws:
Exception
-
corsConfigurationSource
@Bean public org.springframework.web.cors.CorsConfigurationSource corsConfigurationSource()Builds the bean having the CORS configuration for this Web application.- Returns:
- CORS configuration source bean
-