You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
Can anyone PLEASE help me figure out how to use local judge0 API (which is successfully running and compiling submissions), I just dont know which URL is to be replaced in the 'ide.js' file. What line do I change this to :https://github.com/judge0/ide/blob/02d9560be8/js/ide.js#L1 so that it uses my localhost instead of sending requests to the api.judge0.com.
Access to XMLHttpRequest at 'http://secure.localhost/standard/submissions?base64_encoded=true&wait=false' from origin 'http://secure.localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Please help me with this, I have been pulling my hair since days.
Regards,
The text was updated successfully, but these errors were encountered:
Hey,
Can anyone PLEASE help me figure out how to use local judge0 API (which is successfully running and compiling submissions), I just dont know which URL is to be replaced in the 'ide.js' file. What line do I change this to :https://github.com/judge0/ide/blob/02d9560be8/js/ide.js#L1 so that it uses my localhost instead of sending requests to the api.judge0.com.
I have hosted the ide code in python using simpleHTTP server. I am using "http://secure.localhost/standard" instead of "https://secure.judge0.com/standard"
But it gives me CORS error like so :
Access to XMLHttpRequest at 'http://secure.localhost/standard/submissions?base64_encoded=true&wait=false' from origin 'http://secure.localhost:8000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Please help me with this, I have been pulling my hair since days.
Regards,
The text was updated successfully, but these errors were encountered: