Package com.ibm.cloud.cloudant.v1.model
Class CorsInformation
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.CorsInformation
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CorsInformation extends com.ibm.cloud.sdk.core.service.model.GenericModel
Schema for information about the CORS configuration.
-
-
Constructor Summary
Constructors Constructor Description CorsInformation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getOrigins()
Gets the origins.Boolean
isAllowCredentials()
Gets the allowCredentials.Boolean
isEnableCors()
Gets the enableCors.
-
-
-
Method Detail
-
isAllowCredentials
public Boolean isAllowCredentials()
Gets the allowCredentials. Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.- Returns:
- the allowCredentials
-
isEnableCors
public Boolean isEnableCors()
Gets the enableCors. Boolean value to turn CORS on and off.- Returns:
- the enableCors
-
getOrigins
public List<String> getOrigins()
Gets the origins. An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.- Returns:
- the origins
-
-