Class CorsProperties
java.lang.Object
com.nicholasalfonso.lato.security.CorsProperties
@Configuration
@ConfigurationProperties(prefix="lato.cors")
public class CorsProperties
extends Object
Configuration holder for Cross-Origin Resource Sharing settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the list of origins permitted to access the API.voidsetAllowedOrigins(List<String> allowedOrigins) Sets the list of origins permitted to access the API.
-
Constructor Details
-
CorsProperties
public CorsProperties()
-
-
Method Details
-
getAllowedOrigins
Returns the list of origins permitted to access the API.- Returns:
- allowed CORS origin URLs
-
setAllowedOrigins
Sets the list of origins permitted to access the API.- Parameters:
allowedOrigins- allowed CORS origin URLs
-