Is there any way to use the Api V3's node.js module solely on browser.

Hi team, I am trying to make a SPA which runs in the browser and makes the required calls. I am using reactjs framework. I have encountered few problems, hope you can help me with this.

Firstly the v3 library uses some core node modules which are not available in webpack>5, and on browser like 'os, fs' etc., so is there any chances you can create a library which uses modules which are compatible with browser. Or any way by which I can use the existing library.

Second, when I am making the calls from external url either local host or domain. My request is getting blocked due to CORS error which says blocked request from external origin sources. But I can make the login request, fund request and profile requests. Other requests are getting blocked. Is there anything you can do about this.

Quick Response is appreciated.

Thanks

4 replies