Class Bucket.CorsData
The bucket's Cross-Origin Resource Sharing (CORS) configuration.
Inherited Members
Namespace: Google.Apis.Storage.v1.Data
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class Bucket.CorsData
Properties
MaxAgeSeconds
The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
Declaration
[JsonProperty("maxAgeSeconds")]
public virtual int? MaxAgeSeconds { get; set; }
Property Value
Type | Description |
---|---|
int? |
Method
The list of HTTP methods on which to include CORS response headers, (GET, OPTIONS, POST, etc) Note: "*" is permitted in the list of methods, and means "any method".
Declaration
[JsonProperty("method")]
public virtual IList<string> Method { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
Origin
The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
Declaration
[JsonProperty("origin")]
public virtual IList<string> Origin { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |
ResponseHeader
The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
Declaration
[JsonProperty("responseHeader")]
public virtual IList<string> ResponseHeader { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |