// Override the document.cookie setter if the page has a requirement that no cookies can drop (including essential cookies).
// This globally overrides the document.cookie setter behavior so that, instead of setting cookies when called, it does nothing.
// This logic is handled through an OSGi service CookieOverrideService.java

Object.defineProperty(document, 'cookie', {
    set: function() {
        // Do nothing. Do not set any cookies.
    }
});
