Package best.skn.security.properties
Class CorsSourceProperty
java.lang.Object
best.skn.security.properties.CorsSourceProperty
@Component
@ConfigurationProperties("skn.security.cors")
public class CorsSourceProperty
extends Object
External CORS Configuration Property Class
There is a property called 'skn.security.cors' for externalizing configurations
The sub-properties are:
(1) Origins: it's an array of String under 'skn.security.cors.origins'. It holds all the addresses for the allowed origins.
- Since:
- 2024-03-16
- Version:
- 1.2.1
- Author:
- SKN Shukhan
- Use Case:
- Spring Boot Reactive
- Dedicated To:
- Logno, Atoshi and My Parents
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona getter method to get a list of CORS allowed origins
-
Field Details
-
origins
An array of String containing the allowed origins in CORS configuration- Since:
- v1.0.0
-
-
Constructor Details
-
CorsSourceProperty
public CorsSourceProperty()
-
-
Method Details
-
getOriginList
a getter method to get a list of CORS allowed origins- Returns:
- a list of String containing the allowed origins in CORS configuration
- Since:
- v1.0.0
-