Skip to content

isXDomain() reports wrong result for HTTPS pages #462

Closed
@jampy

Description

@jampy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions