Show / Hide Table of Contents

Class Bucket.CorsData

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

Inheritance
System.Object
Bucket.CorsData
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Storage.v1.Data
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class 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
System.Nullable<System.Int32>

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
System.Collections.Generic.IList<System.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
System.Collections.Generic.IList<System.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
System.Collections.Generic.IList<System.String>
In This Article
Back to top