HelioHost Posted October 30, 2019 Posted October 30, 2019 Username: sistema7, Server: Johnny, Main domain: instructpupil.heliohost.org Hi : Recently, i activated a free plan hosting, it was enabled because, i neededto realize some tests to a web page wich will be used for some project... In my code, i send some post requests trought jquery, when i try thisrequests, i get this error message in the browser console: SAulamath.php?r=m&id=31 Access to XMLHttpRequest at 'http://instructpupil.heliohost.org//FOlderl/Signal.php'from origin 'http://localhost:8080' has been blockedby CORS policy: No 'Access-Control-Allow-Origin' header is present on therequested resource. The request is like this one://jquery$.post(Server+"/Folder/Signal.php",{p:'m3'}, function(res){console.log(res);}); please can you help me? is there some solution for this trouble? My server is : http://instructpupil.heliohost.org/ Thanks in advance
Guest pooks Posted October 30, 2019 Posted October 30, 2019 From what I can see, Signal.php is located here: http://instructpupil.heliohost.org/PlataformaVirtual/Signal.php
Krydos Posted October 30, 2019 Posted October 30, 2019 I really doubt that every person who visits your website is going to have a webserver running on port 8080... You need to change localhost:8080 to something else. Most likely your website.
Recommended Posts