> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: wix-window-frontend ## Namespace: consent-policy ## Article: Introduction ## Article Link: https://dev.wix.com/docs/velo/apis/wix-window-frontend/consent-policy/introduction.md ## Article Content: # Introduction >**Note:** The APIs in `wix-window-frontend.ConsentPolicy` can only be used in frontend code. The consent policy helps you comply with [GDPR](https://support.wix.com/en/article/preparing-your-wix-site-for-the-gdpr) and [CCPA](https://support.wix.com/en/article/preparing-your-wix-site-for-ccpa) regulations, and allows site visitors to control their information. Set up the site consent policy and cookie consent banners in a site's [Privacy Center](https://www.wix.com/my-account/site-selector/?buttonText=Open%20Privacy%20Center&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fcookie-consent-settings-app?referralInfo=corvid-docs). To use the ConsentPolicy API, import `{ consentPolicy }` from the `wix-window-frontend` module: ```javascript import { consentPolicy } from 'wix-window-frontend'; ```