# Failed to read the 'localStorage' property from 'Window'

**URL:** <https://community.developer.atlassian.com/t/failed-to-read-the-localstorage-property-from-window/52876>\
**Category:** Jira Cloud\
**Tags:** editor-core, atlaskit\
**Created:** [October 14, 2021, 5:06am UTC](https://community.developer.atlassian.com/t/failed-to-read-the-localstorage-property-from-window/52876 "2021-10-14T05:06:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiv](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@shiv](https://community.developer.atlassian.com/u/shiv)\
**Post date:** [October 14, 2021, 5:06am UTC](https://community.developer.atlassian.com/t/failed-to-read-the-localstorage-property-from-window/52876/1 "2021-10-14T05:06:11Z")

</div>

```auto
import React from 'react';
import { Editor } from '@atlaskit/editor-core';
import { emoji } from '@atlaskit/util-data-test';

const emojiProvider = emoji.storyData.getEmojiResource({
  uploadSupported: false,
});

const Main= () => (
  <span>
    <Editor
      appearance="comment"
      emojiProvider={emojiProvider}
    />
  </span>
);

```

I am getting below error for my **cloud addon**

```auto
DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.

```

**However same code is working for my server addon.**

packages used are

```auto
"@atlaskit/editor-core": "^123.0.0",
"@atlaskit/util-data-test": "^15.0.1",

```

This can be reproduced in chrome when "  
Block third-party cookies" is selected in “settings-\>Privacy and security-\>Cookies and other site data”

Here only difference in cloud and server plugin i can think of is, cloud plugin is loaded within iframe.

are we doing it right way?
