@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Interface CorsRule

    Cross-Origin Resource Sharing (CORS) rule for browser-based access to a bucket.

    interface CorsRule {
        allowedHeaders: readonly string[] | null;
        allowedOperations: readonly CorsOperation[];
        allowedOrigins: readonly string[];
        corsRuleName: string;
        exposeHeaders: readonly string[] | null;
        maxAgeSeconds: number;
    }
    Index

    Properties

    allowedHeaders: readonly string[] | null

    Request headers allowed in preflight requests, or null if none are allowed.

    allowedOperations: readonly CorsOperation[]

    B2 and S3 operations permitted by this rule.

    allowedOrigins: readonly string[]

    Origins allowed to make cross-origin requests (e.g., 'https://example.com').

    corsRuleName: string

    Unique name identifying this CORS rule within the bucket.

    exposeHeaders: readonly string[] | null

    Response headers exposed to the browser, or null if none are exposed.

    maxAgeSeconds: number

    Maximum time (in seconds) browsers may cache the preflight response.