Closed blackdante101 closed 2 years ago
You're supposed to call the API from the backend and not the front end, use netlify functions or use it using nodejs
Hi Jaagrav, Why I can't call the API's from front end ?
This issue has already been tackled
But still I'm not able to make API call from angular
showing CORS policy
It shouldn't, can you share the screenshot of both the error and the code?
Yes
On Tue, Nov 16, 2021 at 4:58 PM Laes @.***> wrote:
It shouldn't, can you share the screenshot of both the error and the code?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Jaagrav/CodeX/issues/4#issuecomment-970179216, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIBJDBHSQRW2MLCZSHPLF5TUMI55RANCNFSM5ELZXQOA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Here is the code
Here is the error I'm getting
Access to api from localhost/3000 blocked by cors policy