Skip to content

Electron CORS Gmail/iCloud #216

@maksimlya

Description

@maksimlya

Hi, I am on Electron env. My calendar lib is located on the renderer process, therefore 'fetch' does throws CORS for Gmail/iCloud.

I am using XHR tunnel in my project for such cases, so that any XMLHttpRequest goes through tunnel to main thread and executes the request there.

Is there any standard way to tell this lib to use XHR instead of fetch? I did not find a quick way.

*Please do not suggest me to move the lib completely to main thread as we support all platforms and it's not quite easy to do, I'd rather implement manual patches in all request places if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions