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