Class FixedCorsConfigurationSource
- java.lang.Object
-
- org.craftercms.commons.spring.cors.FixedCorsConfigurationSource
-
- All Implemented Interfaces:
org.springframework.web.cors.CorsConfigurationSource
public class FixedCorsConfigurationSource extends Object implements org.springframework.web.cors.CorsConfigurationSource
Implementation ofCorsConfigurationSource
that setup and returns a single instance- Since:
- 3.1.11
- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.web.cors.CorsConfiguration
config
-
Constructor Summary
Constructors Constructor Description FixedCorsConfigurationSource(boolean disableCORS, String allowOrigins, String allowMethods, String maxAge, String allowHeaders, boolean allowCredentials)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.web.cors.CorsConfiguration
getCorsConfiguration(javax.servlet.http.HttpServletRequest request)
static List<String>
getOrigins(String value)
-
-
-
Constructor Detail
-
FixedCorsConfigurationSource
@ConstructorProperties({"disableCORS","allowOrigins","allowMethods","maxAge","allowHeaders","allowCredentials"}) public FixedCorsConfigurationSource(boolean disableCORS, String allowOrigins, String allowMethods, String maxAge, String allowHeaders, boolean allowCredentials)
-
-