Class CorsConfigurator
- java.lang.Object
-
- org.bardframework.commons.web.cors.CorsConfigurator
-
- All Implemented Interfaces:
Configurator
- Direct Known Subclasses:
CorsConfiguratorReloadable
public class CorsConfigurator extends Object implements Configurator
-
-
Constructor Summary
Constructors Constructor Description CorsConfigurator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)protected List<String>getCorsAllowedHeaders()protected List<String>getCorsAllowedMethods()protected List<String>getCorsAllowedOrigins()protected List<String>getCorsExposedHeaders()protected CorsFiltergetCorsFilter()protected List<String>getCorsMapping()protected intgetCorsMaxAge()protected booleanisCorsAllowCredentials()booleanisCorsEnable()
-
-
-
Method Detail
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
- Specified by:
configurein interfaceConfigurator
-
isCorsAllowCredentials
protected boolean isCorsAllowCredentials()
-
getCorsMaxAge
protected int getCorsMaxAge()
-
isCorsEnable
public boolean isCorsEnable()
-
getCorsFilter
protected CorsFilter getCorsFilter()
-
-