Table of Contents

Class BucketCorsPolicy

Namespace
Cloudflare.NET.Accounts.Models
Assembly
Cloudflare.NET.dll

Represents the CORS policy for an R2 bucket.

public record BucketCorsPolicy : IEquatable<BucketCorsPolicy>
Inheritance
BucketCorsPolicy
Implements
Inherited Members

Constructors

BucketCorsPolicy(IReadOnlyList<CorsRule>)

Represents the CORS policy for an R2 bucket.

public BucketCorsPolicy(IReadOnlyList<CorsRule> Rules)

Parameters

Rules IReadOnlyList<CorsRule>

The list of CORS rules applied to the bucket.

Properties

Rules

The list of CORS rules applied to the bucket.

[JsonPropertyName("rules")]
public IReadOnlyList<CorsRule> Rules { get; init; }

Property Value

IReadOnlyList<CorsRule>