capacitor-community / http

Community plugin for native HTTP
MIT License
209 stars 136 forks source link

Add custom fetch for Electron #218

Open jdgjsag67251 opened 2 years ago

jdgjsag67251 commented 2 years ago

The default fetch method is restricted by the browser context in which the app runs. This means that all requests are subjected to CORS and other web security mechanisms. This can sometimes be a pain, so with this pull-request this library now uses node-fetch in Electron contexts.

thomasvidas commented 2 years ago

Wow! This looks excellent. When I get some time, I'll test, approve, and merge it into the v1 branch. Thanks for your contribution 😄

AmirHmZz commented 2 years ago

Any updates on this ?