0

So, I setup a webserver on a Ubuntu 16.04 server. I tried to access one of my PHP scripts through javascript, but it keeps giving me this error.

No 'Access-Control-Allow-Origin' header is present on the requested resource.

I already put this header in my PHP code.

header('Access-Control-Allow-Origin: *');

What do I do to get this to work?

0 Answers0