uwu / neptune

an experimental client mod for TIDAL
Microsoft Public License
116 stars 6 forks source link

Access to Electron's API's #4

Closed Inrixia closed 1 year ago

Inrixia commented 1 year ago

Is it possible to get access to Electron's net or webRequest APIs?

Inrixia commented 1 year ago

I'm trying to make a fetch request outside of the origin 'https://desktop.tidal.com' and running into CORS issues. Afik using Electorn webRequest API's or some other method should let me get around this (Neptune still has cors enabled on Electron for Tidal).

Do you know of/have a good way to get around cors in plugins?

Inrixia commented 1 year ago

NVM looks like in order to use node apis you have to use

require("modulename") 

over

import module from "modulename"