@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface CORSRule

    Represents the nebius.storage.v1.CORSRule protobuf message.

    interface CORSRule {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.storage.v1.CORSRule";
        allowedHeaders: string[];
        allowedMethods: string[];
        allowedOrigins: string[];
        exposeHeaders: string[];
        id?: string;
        maxAgeSeconds?: number;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      Represents the nebius.storage.v1.CORSRule protobuf message.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • Represents the nebius.storage.v1.CORSRule protobuf message.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

      • (): unknown
      • Returns a safe value for JSON logs.

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.storage.v1.CORSRule"

    Contains the fully qualified protobuf type name.

    allowedHeaders: string[]

    Headers that are allowed in a preflight request through the Access-Control-Request-Headers header

    allowedMethods: string[]

    HTTP methods CORS is allowed for: GET, PUT, POST, DELETE, HEAD.

    allowedOrigins: string[]

    The origins that you want to allow cross-domain requests from. Single wildcard * is allowed.

    exposeHeaders: string[]

    Headers in the response that you want customers to be able to access from their applications.

    id?: string

    Optional rule identifier.

    maxAgeSeconds?: number

    Time in seconds that your browser can cache the response for a preflight request as identified by the resource.