Class CorsOptions.Jsii$Proxy
- All Implemented Interfaces:
CorsOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
CorsOptions
CorsOptions-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.CorsOptions
CorsOptions.Builder, CorsOptions.Jsii$Proxy -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJsii$Proxy(CorsOptions.Builder builder) Constructor that initializes the object based on literal property values passed by theCorsOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodefinal booleanfinal BooleanThe Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request's credentials mode (Request.credentials) is "include".The Access-Control-Allow-Headers response header is used in response to a preflight request which includes the Access-Control-Request-Headers to indicate which HTTP headers can be used during the actual request.The Access-Control-Allow-Methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.Specifies the list of origins that are allowed to make requests to this resource.final BooleanSets Access-Control-Max-Age to -1, which means that caching is disabled.The Access-Control-Expose-Headers response header indicates which headers can be exposed as part of the response by listing their names.final DurationThe Access-Control-Max-Age response header indicates how long the results of a preflight request (that is the information contained in the Access-Control-Allow-Methods and Access-Control-Allow-Headers headers) can be cached.final NumberSpecifies the response status code returned from the OPTIONS method.final inthashCode()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theCorsOptions.Builder.
-
-
Method Details
-
getAllowOrigins
Description copied from interface:CorsOptionsSpecifies the list of origins that are allowed to make requests to this resource.If you wish to allow all origins, specify
Cors.ALL_ORIGINSor[ * ].Responses will include the
Access-Control-Allow-Originresponse header. If specific origins are specified (notCors.ALL_ORIGINS), theVary: Originresponse header will also be included.- Specified by:
getAllowOriginsin interfaceCorsOptions- See Also:
-
getAllowCredentials
Description copied from interface:CorsOptionsThe Access-Control-Allow-Credentials response header tells browsers whether to expose the response to frontend JavaScript code when the request's credentials mode (Request.credentials) is "include".When a request's credentials mode (Request.credentials) is "include", browsers will only expose the response to frontend JavaScript code if the Access-Control-Allow-Credentials value is true.
Credentials are cookies, authorization headers or TLS client certificates.
Default: false
- Specified by:
getAllowCredentialsin interfaceCorsOptions- See Also:
-
getAllowHeaders
Description copied from interface:CorsOptionsThe Access-Control-Allow-Headers response header is used in response to a preflight request which includes the Access-Control-Request-Headers to indicate which HTTP headers can be used during the actual request.Default: Cors.DEFAULT_HEADERS
- Specified by:
getAllowHeadersin interfaceCorsOptions- See Also:
-
getAllowMethods
Description copied from interface:CorsOptionsThe Access-Control-Allow-Methods response header specifies the method or methods allowed when accessing the resource in response to a preflight request.If
ANYis specified, it will be expanded toCors.ALL_METHODS.Default: Cors.ALL_METHODS
- Specified by:
getAllowMethodsin interfaceCorsOptions- See Also:
-
getDisableCache
Description copied from interface:CorsOptionsSets Access-Control-Max-Age to -1, which means that caching is disabled.This option cannot be used with
maxAge.Default: - cache is enabled
- Specified by:
getDisableCachein interfaceCorsOptions
-
getExposeHeaders
Description copied from interface:CorsOptionsThe Access-Control-Expose-Headers response header indicates which headers can be exposed as part of the response by listing their names.If you want clients to be able to access other headers, you have to list them using the Access-Control-Expose-Headers header.
Default: - only the 6 CORS-safelisted response headers are exposed: Cache-Control, Content-Language, Content-Type, Expires, Last-Modified, Pragma
- Specified by:
getExposeHeadersin interfaceCorsOptions- See Also:
-
getMaxAge
Description copied from interface:CorsOptionsThe Access-Control-Max-Age response header indicates how long the results of a preflight request (that is the information contained in the Access-Control-Allow-Methods and Access-Control-Allow-Headers headers) can be cached.To disable caching altogether use
disableCache: true.Default: - browser-specific (see reference)
- Specified by:
getMaxAgein interfaceCorsOptions- See Also:
-
getStatusCode
Description copied from interface:CorsOptionsSpecifies the response status code returned from the OPTIONS method.Default: 204
- Specified by:
getStatusCodein interfaceCorsOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-