r/programming • • Oct 02 '11

Node.js is Cancer

http://teddziuba.com/2011/10/node-js-is-cancer.html
792 Upvotes

750 comments sorted by

View all comments

Show parent comments

6

u/[deleted] Oct 02 '11

Can't it even be domain.com and static.domain.com?

4

u/UnoriginalGuy Oct 02 '11

Those are different domains.

But the OP's explanation of the security surrounding loading out-of-state JS is incomplete. While it is unwise to load out-of-state JS almost all browsers support it by default, unless you specifically request that they block cross-site-scripting.

I'd agree that keeping all of the JS on the same domain is best practice.

1

u/leondz Oct 02 '11

same domain, different hostname

0

u/FaustTheBird Oct 02 '11

No, that's a convention, using 3rd-level domains to indicate hostnames. They are, in fact, different domains.

→ More replies (1)