Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Electron CORS Gmail/iCloud #216

Open
maksimlya opened this issue Sep 23, 2024 · 1 comment
Open

Electron CORS Gmail/iCloud #216

maksimlya opened this issue Sep 23, 2024 · 1 comment

Comments

@maksimlya
Copy link

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.

@natelindev
Copy link
Owner

will add XMLHttpRequest in future version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants