-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS Error, While Using in ReactJS Application #3
Comments
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 |
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:
![image](https://user-images.githubusercontent.com/63240102/133405662-60347047-4140-422c-9ccd-30b62bfd1c86.png)
The text was updated successfully, but these errors were encountered: