public class CorsSettings extends Object
Constructor and Description |
---|
CorsSettings() |
Modifier and Type | Method and Description |
---|---|
List<String> |
allowedOrigins()
Get gets or sets the list of origins that should be allowed to make cross-origin
calls (for example: http://example.com:12345).
|
Boolean |
supportCredentials()
Get gets or sets whether CORS requests with credentials are allowed.
|
CorsSettings |
withAllowedOrigins(List<String> allowedOrigins)
Set gets or sets the list of origins that should be allowed to make cross-origin
calls (for example: http://example.com:12345).
|
CorsSettings |
withSupportCredentials(Boolean supportCredentials)
Set gets or sets whether CORS requests with credentials are allowed.
|
public List<String> allowedOrigins()
public CorsSettings withAllowedOrigins(List<String> allowedOrigins)
allowedOrigins
- the allowedOrigins value to setpublic Boolean supportCredentials()
public CorsSettings withSupportCredentials(Boolean supportCredentials)
supportCredentials
- the supportCredentials value to setCopyright © 2019. All rights reserved.