Skip to content

Commit

Permalink
Merge pull request #908 from ksokolowski7/crossOrigin_port
Browse files Browse the repository at this point in the history
correct port checking for relative URLs
  • Loading branch information
andreasplesch committed Oct 17, 2018
2 parents 4d3f863 + 79cf79f commit 35ebfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/Utils.js
Expand Up @@ -1293,7 +1293,7 @@ x3dom.Utils.forbiddenBySOP = function (uri_string) {
Port = Host_Port[1];
} // else will return false for an invalid URL or URL without authority

Port = Port || "80";
Port = Port || originPort;
Host = Host || document.location.host;
Scheme = Scheme || document.location.protocol;
return !(Port === originPort && Host === document.location.host && Scheme === document.location.protocol);
Expand Down

0 comments on commit 35ebfa7

Please sign in to comment.