I'm not sure but I was working with google RSS and there's a case where I have to access an API and if I fetch it from the client side it will return Cors error but when I access it from a node server it works
Asked
Active
Viewed 49 times
-1
-
By default browsers don't allow access to APIs of other domains. This restriction can be turned off with CORS. If there's no CORS, there's no access. – Evert Apr 21 '23 at 21:29
1 Answers
-1
That's because of what's called Cross-Origin Resource Sharing . It's a way of preventing the server from unknown clients/requests.
There is a package called cors - (you can find it here) - that allows your server to accept client requests by configuring it

Achraf FAWZI
- 34
- 4