Show / Hide Table of Contents

Class Bucket.CorsData

The bucket's Cross-Origin Resource Sharing (CORS) configuration.

Inheritance
object
Bucket.CorsData
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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>
In this article
Back to top Generated by DocFX