A Chrome extension that automatically copies Pantheon X-Pantheon cookies from live sites to local development environments.
-
Clone the repository
git clone https://github.com/tyrellcurry/cookieCutter.git ~/Documents/chromeExtensions/cookieCutter(This will store the extension at
~/Documents/chromeExtensions/cookieCutter) -
Load the extension in Chrome
- Open Chrome and go to
chrome://extensions/ - Enable "Developer mode" (toggle in top-right corner)
- Click "Load unpacked" on the top left
- Select the
cookie-cutter-chrome-extensionfolder from within:~/Documents/chromeExtensions/cookieCutter
- Open Chrome and go to
-
Done! The extension will now automatically:
- Capture Pantheon
X-Pantheoncookies when you visit*.pantheon.iosites - Inject those cookies when you navigate to local development sites (localhost, 127.x.x.x, file://)
- Capture Pantheon
- Log into the Pantheon Dashboard and reload the page (reload, not refresh)
- Navigate to your local development environment eg. (
localhost:3000) and reload the page (reload, not refresh) - Pantheon authentication cookies are now automatically applied!
Watch the demo video:
What if I log into another Pantheon account in the live dashboard and the cookies change?
- The extension will automatically store and apply the new cookies, just follow the steps above
What if the cookies are expired and then get refreshed? Will the expired cookies stay stored?
- No, as long as you follow the steps above after the cookies are refreshed, it will use the latest cookies
Can I use this extension in incognito mode?
- Yes! Find the extension settings by navigating to
chrome://extensions/and clicking the Details button within CookieCutter. From there you can enable additional settings such as allowing in incognito mode.
Will storing these cookies affect with my local storage?
- No, the cookies are stored in a specific extension storage that will not affect standard local storage
To update the extension when a new change is made, pull from the repo:
cd ~/Documents/chromeExtensions/cookieCutter
git pullThen refresh the extension by navigating to chrome://extensions/ and clicking the refresh icon within CookieCutter:
- Created by: Tyrell Curry.

