Przeglądaj źródła

CORS test should work with default port 8080

bel2125 10 lat temu
rodzic
commit
7a366c45b2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      test/cors.html

+ 2 - 2
test/cors.html

@@ -32,7 +32,7 @@ function getTitle(text) {
 
 // Make the actual CORS request.
 function makeCorsRequest(method, resource) {
-  var url = "http://localhost/cors.reply." + resource;
+  var url = "http://localhost:8080/cors.reply." + resource;
   var xhr = createCORSRequest(method, url);
   if (!xhr) {
     alert('ERROR: CORS not supported');
@@ -55,7 +55,7 @@ function makeCorsRequest(method, resource) {
 
 function start() {
   var el = document.getElementById("from");
-  el.innerHTML = "Test CORS from " + document.URL + " to http://localhost/cors.reply.*";
+  el.innerHTML = "Test CORS from " + document.URL + " to http://localhost:8080/cors.reply.*";
   if ((document.URL.indexOf("localhost") >= 0) || (document.URL.indexOf("127.0.0.1") >= 0)) {
     alert("This CORS test is only meaningful, if you open this site with a different url than \'localhost\' (127.0.0.1).\nYou may use a different IP of the same machine.");
   }