Closed asmitsirohi closed 2 years ago
This api works only in backend, for example with nodejs, in order to use it in front end you need to add this URL as a prefix https://cors-anywhere-jaagrav.herokuapp.com/https://codexweb.netlify.app/.netlify/functions/enforceCode
and it should work
Thanks....It helps a lot.
Really Helpful, thank you very much!!!
The API now supports No CORS requests so you don't need to follow the above comment any more. Check out the new docs, https://github.com/Jaagrav/CodeX-API
I'm trying to use this api in my ReactJS application, and facing CORS error.
Code: var data = JSON.stringify({ code:
public class program{ public static void main(String [] args){ System.out.println("Hello"); } }
, language: "java", input: "", });Error ScreenShot: