Posted by:
shrdlu1497
(---.lnse5.ken.bigpond.net.au)
I have installed Wampserver 2.5 and run it as administrator. It shows the Homepage and a list of the folders I have under c:\wampserver\www. If I click on the name of one of the folders e.g. maps I get the message
Firefox can't find the server at maps.
If I run open an html file which runs javascript including the line
XMLHttp.open("GET","[
localhost];, false);
Firefox comes back with an error:
GET [
localhost] [HTTP/1.1 404 Not Found 0ms]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at [
localhost]. This can be fixed by moving the resource to the same domain or enabling CORS.
I'm running Windows 7 Home Premium. I have edited the hosts file to uncomment the two lines
127.0.0.1 localhost
::1 localhost
I changed the apache config file lines
Listen 0.0.0.0:8080
Listen [::0]:8080
which originally had :80 as MS IIS uses port 80
but it doesn't help. It doesn't matter whether I have wampserver online or offline.
Thanks in advance.