Jump to content

Recommended Posts

Posted

Username: sistema7, Server: Johnny, Main domain: instructpupil.heliohost.org

 

Hi :

 

Recently, i activated a free plan hosting, it was enabled because, i needed

to 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 this

requests, 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 blocked

by CORS policy: No 'Access-Control-Allow-Origin' header is present on the

requested 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

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...