# Whitelisting Cookies for a Domain

To whitelist a domain add it to [csp.js](https://github.com/dollarshaveclub/js-utils/blob/master/browser/cookie-banner/csp.js).

This is the cookie we set when a user consents, so you can check it: https://github.com/dollarshaveclub/js-utils/blob/master/browser/cookie-banner/index.js#L94

# Deploying

- Upon merge to frontend master, [js-utils](https://www.npmjs.com/package/@dollarshaveclub/js-utils) will get automatically bumped to a new minor version
- After js-utils has been updated, update the version of js-utils in face-assets' package.json.
- A [face-assets deploy](https://jenkins-deploy.shave.io/job/Production/job/production-face-assets/) should automatically trigger. This takes about 10m to complete.
- After that, the [the docker image will build](https://jenkins-deploy.shave.io/job/Production/job/images/job/docker-build-face-assets-master/). This takes about 5m to complete.
