Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.43 KB

set-cookie-policy.md

File metadata and controls

45 lines (33 loc) · 1.43 KB
title titleSuffix description author manager ms.service ms.topic ms.date ms.author ms.custom
Set Immersive Reader cookie policy
Azure AI services
Learn how to set the cookie policy for the Immersive Reader app.
sharmas
nitinme
azure-ai-immersive-reader
how-to
02/26/2024
sharmas

How to set the cookie policy for the Immersive Reader

The Immersive Reader disables cookie usage by default. If you enable cookie usage, then the Immersive Reader can use cookies to maintain user preferences and track feature usage. If you enable cookie usage in the Immersive Reader, consider the requirements of the EU Cookie Compliance Policy. It's the responsibility of the host application to obtain any necessary user consent in accordance with the EU Cookie Compliance Policy.

The cookie policy can be set through the Immersive Reader options.

Enable cookie usage

const options = {
    'cookiePolicy': ImmersiveReader.CookiePolicy.Enable
};

ImmersiveReader.launchAsync(YOUR_TOKEN, YOUR_SUBDOMAIN, YOUR_DATA, options);

Disable cookie usage

const options = {
    'cookiePolicy': ImmersiveReader.CookiePolicy.Disable
};

ImmersiveReader.launchAsync(YOUR_TOKEN, YOUR_SUBDOMAIN, YOUR_DATA, options);

Next step

[!div class="nextstepaction"] View the quickstart guides