testcookie-nginx-module - Make my app crash

The testcookie-nginx-module make my PHP API crash, because of that simple check alway return

<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("2b10bc1aefde45110540b3a860723c18");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+"; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="http://hostmystuff.rf.gd/?i=1";</script><noscript>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support</noscript></body></html>

Instead of the JSON I want to return


Are you using the API from your website hosted here or externally? If you want to use it from your own website, that shouldn’t be a problem as long as you’re using the same domain name.

However, API access to your website externally is not possible on free hosting, InfinityFree is only for regular websites. If you want to host an API, please upgrade your account.