Javascript document.domain and port number

Prerequisites:

The browser saves the domain as a pair ("domain", "port") and sets its own value for the document.domain document (or any other correct one), forces the setter to overwrite the port number with a zero value (ok, WTF !?)

See: What does document.domain = document.domain do?

Question:

Is it possible to call the setter in a way that saves the port or allows you to install it?

+5
source share
1 answer

No.

If you never installed document.domain, this is "special", it knows that it has never been installed, and also includes a port.

, , , .

document.domain document.domain - , . . document.domain , , "".

+3

All Articles