Package com.ibm.cloud.cloudant.v1.model
Class PutCorsConfigurationOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.cloudant.v1.model.PutCorsConfigurationOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class PutCorsConfigurationOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The putCorsConfiguration options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PutCorsConfigurationOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
allowCredentials()
Gets the allowCredentials.Boolean
enableCors()
Gets the enableCors.PutCorsConfigurationOptions.Builder
newBuilder()
New builder.List<String>
origins()
Gets the origins.
-
-
-
Method Detail
-
newBuilder
public PutCorsConfigurationOptions.Builder newBuilder()
New builder.- Returns:
- a PutCorsConfigurationOptions builder
-
origins
public List<String> origins()
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
-
allowCredentials
public Boolean allowCredentials()
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
-
enableCors
public Boolean enableCors()
Gets the enableCors. Boolean value to turn CORS on and off.- Returns:
- the enableCors
-
-