Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isXDomain() reports wrong result for HTTPS pages #462

Closed
jampy opened this issue Aug 14, 2011 · 1 comment
Closed

isXDomain() reports wrong result for HTTPS pages #462

jampy opened this issue Aug 14, 2011 · 1 comment

Comments

@jampy
Copy link

jampy commented Aug 14, 2011

The isXDomain() function queries the port this way:

var locPort = window.location.port || 80;

At least with FireFox 5 window.location.port is also an empty string for HTTPS pages on standard port. This means that locPort==80 for HTTPS pages which makes isXDomain() return true.

Perhaps checking window.location.protocol=="https:" could solve the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants