Hii everyone,
I created an app through CLI (terminal). Now I am customizing and adding custom files of .jsx to add some custom functionality. I’m using an API to achieve some functionality but when the API is used in code it gives a CORS error.
I also had tried these
- axios instead of fetch.
- Updating API headers.
Is there any solution or suggestion?