Skip to content

UNSAFE_COOKIE_ACCESS: Component reads the page's cookies

Severity Fault Stage
error customer (the source package) build output

The component reads or writes document.cookie (or cookieStore): the host page’s cookies, which may hold sessions and tracking ids that belong to the site, not to the component (rule document-cookie). Taggor components are cookieless by default.

Remove the cookie access. To remember something about the visitor, use the component’s props or the Taggor data API (useTaggorData) with consent.