Today I found a weird thing: it seems that Chrome(46.0) set some restrictions for specific URL such as `
cloudfront.net`.
It can be reproduced like this:
1. In the `/etc/hosts`, add two lines:
2. Start Apache or Nginx for the local server
4. Run the following statement in the console:
document.cookie = "test=test; expires=Thu, 01 Jan 2020 00:00:00 GMT;domain=
cloudfront.com; path=/"
5. And then
console.log(document.cookie)
As can be seen the `document.cookie` is empty, it is not set at all, which is weird (See the screenshot below)

However, when I repeat the steps above but change the URL from `
cloudfront.net` into `
cloudfront.com`, everything works well like a magic.. (See the screenshot below)

It seems that Chrome has a blacklist of URL, which user can't set cookie for the root domain, however, I didn't find any specs about that..
Does anyone have any ideas about this?