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

Why I can't make the api call from Front End ? #5

Closed mohdafzal330 closed 2 years ago

mohdafzal330 commented 2 years ago

Why I can't make the api call from Front End i.e - Angular

Jaagrav commented 2 years ago

I have added CORS to the API due to obvious reasons. Currently the API gets around 60k+ requests a month, and to keep it online, I have to keep the requests below 100k requests a month, cause beyond that I'll have to pay netlify. Here's a possible solution, other than that I have not added any paid plans for users, cause I want the API to be completely free, although that is not possible from my side of things, since hosting and requests will cost quite a lot as the number of requests increase.