开发者

If a webserver has a host name and a different alias DNS name, what will be the value of document.domain?

开发者 https://www.devze.com 2023-01-08 02:38 出处:网络
I have a webserver with the following host name and DNS alias name. Host name - server1.aa.xx.company.com

I have a webserver with the following host name and DNS alias name.

Host name - server1.aa.xx.company.com
Alias name - server1.bb.xx.company.com

In the above scenario, what will be the value of JavaSc开发者_开发知识库ript DOM object document.domain? Will it be server1.aa.xx.company.com or will it be server1.bb.xx.company.com?


what will be the value of JavaScript DOM object document.domain

It will be the domain the page was requested in the browser on. Javascript isn't interested in DNS aliases - just in what it says in the browser's address bar.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号