(protocol, credentials)
| 384 | |
| 385 | var otherTests = function () { |
| 386 | var getURL = function (protocol, credentials) { |
| 387 | return protocol + "//" + credentials + location.hostname + ":" + location.port + location.pathname.split("/").slice(0, -1).join("/") + "/events"; |
| 388 | }; |
| 389 | var url4CORS = getURL(location.protocol === "https:" ? "http:" : "https"); |
| 390 | var urlWithAuthorization = getURL(location.protocol, "user012:pass012"); |
| 391 |