Chrome extension to propagate cookie for dev servers with proxy configuration (i.e. webpack-dev-server) using to propagate access cookies
How to use
- Go to chrome menu -> More Tools -> Extensions
- Check developer mode checkbox
- Press
CMD+Shift+i
to open dev tools - Click 'Propagate Cookie' tab and adjust settings
- Go to target website and press cookie icon in the extensions menu to send cookie to the server
You should configure /_dev-server/propagate-cookie
endpoint on your local dev server
to handle click action.
Example express endpoint:
app.post('/_dev-server/propagate-cookie', (req, res) => {
res.send('OK');
// do smth with the cookie in req.body
// ...
});
Extension sends request in the following format:
{
"host": "https://example.com",
"domain": "example.com",
"cookie": "<cookie name>=<cookie value>"
}
LICENSE: MIT