# How cookie tossing attacks led GitHub Pages to move to github.io

DevFeed: [How cookie tossing attacks led GitHub Pages to move to github.io](<https://devfeed.tech/articles/yummy-cookies-across-domains-70218.md>)

Original publisher: [Read original article](<https://github.blog/engineering/infrastructure/yummy-cookies-across-domains/>)

Author: Vicent Martí

Published: 2013-04-10T01:30:07Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Cookies](<https://devfeed.tech/topics/cookies.md>), [cross-origin-storage](<https://devfeed.tech/topics/cross-origin-storage.md>), [GitHub Pages](<https://devfeed.tech/topics/github-pages.md>)

Tags: [chrome](<https://devfeed.tech/tags/chrome.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [csrf](<https://devfeed.tech/tags/csrf.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [github](<https://devfeed.tech/tags/github.md>), [github-pages](<https://devfeed.tech/tags/github-pages.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [phishing](<https://devfeed.tech/tags/phishing.md>)

## AI overview

GitHub describes how hosting user content on subdomains of github.com enabled cookie tossing attacks against session cookies. The article explains server-side mitigations, including clearing duplicate or encoded cookies, and why browser cookie limits made some attacks impossible to block reliably. GitHub moved Pages to github.io to isolate user content from its main domain and reduce phishing and cross-domain cookie risks.

## Source excerpt

Last Friday we announced and performed a migration of all GitHub Pages to their own github.io domain. This was a long-planned migration, with the specific goal of mitigating phishing attacks...