Website Suddenly not working anymore after server shutdown

Thank you Edwin, can you explain this further? I’m new to all these concepts.

1 Like

I did this change on the react code and now I get

Can you explain more? I think this is the solution but I can’t fix it. Where do I make those configurations? Thank you!

If you were getting CORS errors using, then try changing it to the www).

Most Iframe tricks don’t work here because of the security system. Canvas tricks wouldn’t help in this situation.

What did you change? The URL?


:face_with_spiral_eyes: i’m rethinking. Uhm, maybe this is out my mind. Or maybe you just do a little mistake.

  1. Why you get xhr ajax-cors policy on your same access host.
  2. why you keep receive html not json. Whats kind of html you receive. Can you share the html you receive. :face_exhaling:

so You did this change. If you do xhr ajax on same host you don’t need to write the whole address.

However – try to use http instead of https. just try once maybe Ouups!something goes wrong.

:smiley: delete window.HostUrl
So it become:'serverApi/getNews.php', formData,).then(res=>{...})


I would do'/serverApi/getNews.php', ... instead, or you may run into URL completion issues. But indeed, the easiest way is to just not specify the full URL and just let the browser auto-complete it.


This is the html I get. And also the thing is that at one point it was working the way it was set up. Suddenly it stopped working.

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

Wow! Thank you! This was the solution. I was doubting my existence with this bug. Thank you so much.