braze-inc / braze-web-sdk

Public repo for the Braze Web SDK
https://www.braze.com
Other
71 stars 25 forks source link

[Bug]: Initializing SDK with noCookies=true still creates cookies #142

Closed jday3 closed 1 year ago

jday3 commented 1 year ago

Braze Web SDK Version

4.7.1

Integration Method

NPM

Browser

Chrome

Steps To Reproduce

Import and initialize the SDK with noCookies: true

import * as braze from '@braze/web-sdk';

braze.initialize("api key", {
    baseUrl: "sdk url",
    noCookies: true,
});
braze.automaticallyShowInAppMessages();
braze.changeUser("fake-user");
braze.openSession();

Expected Behavior

No ab.* cookies are created.

Actual Incorrect Behavior

ab.storage.* cookies are created and visible in Chrome's DevTools Application -> Cookies panel.

Verbose Logs

No response

Additional Information

No response

davidbielik commented 1 year ago

Hi @jday3 thanks for reporting this. Our team is investigating and we will update you here.

wesleyorbin commented 1 year ago

Hi @jday3. We just released 4.7.2, which fixes this issue.

jday3 commented 1 year ago

@davidbielik @wesleyorbin Thanks for addressing it so quickly!