Re:PSA: Always use a separate domain for user content
by bluesmoon on Friday October 10, 2025 @09:41AM
(#45538917)
Github discovered the same thing a long long time ago which is why you now have the github.io domain.
[ Parent
| on HN ]
Re:PSA: Always use a separate domain for user content
by Macha on Friday October 10, 2025 @10:31AM
(#45539534)
In Github's case, I think it was also because a lot of security boundaries were using TLD which led x.github.com potentially grab cookies of y.github.com or worse, github.com itslef
Re:PSA: Always use a separate domain for user content
by neon_erosion on Friday October 10, 2025 @05:03PM
(#45543758)
Don't forget the `githubusercontent.com` domain, which is specifically used to host risky, user-generated content, and fully documented in https://docs.github.com/en/authentication/keeping-your-accou... (using an open source component that other companies could also use, if they were interested in similar levels of security)