public final class BlobCorsRule extends Object
| Constructor and Description |
|---|
BlobCorsRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowedHeaders()
Get the allowedHeaders property: the request headers that the origin domain may specify on the CORS request.
|
String |
getAllowedMethods()
Get the allowedMethods property: The methods (HTTP request verbs) that the origin domain may use for a CORS
request.
|
String |
getAllowedOrigins()
Get the allowedOrigins property: The origin domains that are permitted to make a request against the storage
service via CORS.
|
String |
getExposedHeaders()
Get the exposedHeaders property: The response headers that may be sent in the response to the CORS request and
exposed by the browser to the request issuer.
|
int |
getMaxAgeInSeconds()
Get the maxAgeInSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS
request.
|
BlobCorsRule |
setAllowedHeaders(String allowedHeaders)
Set the allowedHeaders property: the request headers that the origin domain may specify on the CORS request.
|
BlobCorsRule |
setAllowedMethods(String allowedMethods)
Set the allowedMethods property: The methods (HTTP request verbs) that the origin domain may use for a CORS
request.
|
BlobCorsRule |
setAllowedOrigins(String allowedOrigins)
Set the allowedOrigins property: The origin domains that are permitted to make a request against the storage
service via CORS.
|
BlobCorsRule |
setExposedHeaders(String exposedHeaders)
Set the exposedHeaders property: The response headers that may be sent in the response to the CORS request and
exposed by the browser to the request issuer.
|
BlobCorsRule |
setMaxAgeInSeconds(int maxAgeInSeconds)
Set the maxAgeInSeconds property: The maximum amount time that a browser should cache the preflight OPTIONS
request.
|
public String getAllowedOrigins()
public BlobCorsRule setAllowedOrigins(String allowedOrigins)
allowedOrigins - the allowedOrigins value to set.public String getAllowedMethods()
public BlobCorsRule setAllowedMethods(String allowedMethods)
allowedMethods - the allowedMethods value to set.public String getAllowedHeaders()
public BlobCorsRule setAllowedHeaders(String allowedHeaders)
allowedHeaders - the allowedHeaders value to set.public String getExposedHeaders()
public BlobCorsRule setExposedHeaders(String exposedHeaders)
exposedHeaders - the exposedHeaders value to set.public int getMaxAgeInSeconds()
public BlobCorsRule setMaxAgeInSeconds(int maxAgeInSeconds)
maxAgeInSeconds - the maxAgeInSeconds value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.