Jaagrav / CodeX

CodeX is an online compiler for various languages like Java, C++, Python, etc. Execute code in various languages on your own website for free with the CodeX API!!!
https://codex.jaagrav.in/
268 stars 65 forks source link

Access to api blocked #4

Closed blackdante101 closed 2 years ago

blackdante101 commented 3 years ago

Access to api from localhost/3000 blocked by cors policy

Jaagrav commented 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

mohdafzal330 commented 2 years ago

Hi Jaagrav, Why I can't call the API's from front end ?

Jaagrav commented 2 years ago

This issue has already been tackled here

mohdafzal330 commented 2 years ago

But still I'm not able to make API call from angular

mohdafzal330 commented 2 years ago

showing CORS policy

Jaagrav commented 2 years ago

It shouldn't, can you share the screenshot of both the error and the code?

mohdafzal330 commented 2 years ago

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.

mohdafzal330 commented 2 years ago

Here is the code image

Here is the error I'm getting image

Jaagrav commented 2 years ago

@mohdafzal330 Dude you did not read the comment properly did you? Use the link I have shown in the comment.