• Helper to perform requests via the background script proxy. This is necessary to bypass CORS restrictions for both local and cloud APIs.

    Parameters

    • url: string
    • method: string
    • headers: Record<string, string>
    • body: null | string = null

    Returns Promise<any>