CORS request did not succeed

https://penis.africa/trivia.php

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://opentdb.com/api.php?amount=1&type=multiple. (Reason: CORS request did not succeed).

For some reason, the page was working perfectly fine yesterday, but only today I get this error.

I’m not trying to host any API, I’m trying to use an API from this website: https://opentdb.com/ so I don’t think this applies here.

I’m pretty sure the problem was from my network blocking the connection to https://opentdb.com/ , not a problem on Infinityfree’s end.

1 Like

Also did you get any error messages? Like these:

  • 403 Forbidden
  • This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
  • No ‘Access-Control-Allow-Origin’ header is present on the requested resource

Specifically, content like this is sent to the browser to validate whether it supports Javascript:

<html><body><script type="text/javascript" src="/aes.js" ></script><script>function toNumbers(d){var e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return e}function toHex(){for(var d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return e.toLowerCase()}var a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("d3c143e907c1d71f78f0018d7dbf3ac7");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="https://hans.epizy.com/?i=2";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>
2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.