Sanity Library Reference Docs
    Preparing search index...

    Function getCorsErrorProjectId

    • Extracts the project ID from a CorsOriginError message.

      Parameters

      • error: Error

        The error to extract the project ID from.

      Returns null | string

      The project ID or null if the error is not a CorsOriginError.