# Security error - Next JS + Shopify

**URL:** https://forum.builder.io/t/security-error-next-js-shopify/971
**Category:** Shopify
**Tags:** shopify
**Created:** [September 10, 2021, 1:06pm UTC](https://forum.builder.io/t/security-error-next-js-shopify/971 "2021-09-10T13:06:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![njuguna](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@njuguna](https://forum.builder.io/u/njuguna)
#### Post date: [September 10, 2021, 1:06pm UTC](https://forum.builder.io/t/security-error-next-js-shopify/971/1 "2021-09-10T13:06:52Z")

</div>

Hello,  
Very new to Builder but already loving what’s possible with it. A quick one: I have cloned the nextjs + shopify repo, done all the env variables as needed, setup a development store on Shopify and even managed to have the space show up in Builder. My problem so far is if I try to edit any of the available pages (so far I just have faq and about-us), I get a “Security error: failed to read the local ‘storage’ property from ‘window’. Access is denied for this document.” - A screenshot of the error can be seen here → [Security error - Album on Imgur](https://imgur.com/a/nIQj7qN)

What could I be doing wrong?

Thanks.

---

<div class="post-metadata">

### Author: ![aziz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/aziz/32/2551_2.png) [@aziz](https://forum.builder.io/u/aziz)
#### Post date: [September 10, 2021, 4:05pm UTC](https://forum.builder.io/t/security-error-next-js-shopify/971/2 "2021-09-10T16:05:52Z")

</div>

Hi @njuguna,

> [@njuguna](#):
>
> Security error: failed to read the local ‘storage’ property from ‘window’. Access is denied for this document

Could this be related to a security setting on your browser? for example if you’re using chrome, try allowing access to local storage: [Uncaught SecurityError: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.](https://www.chromium.org/for-testers/bug-reporting-guidelines/uncaught-securityerror-failed-to-read-the-localstorage-property-from-window-access-is-denied-for-this-document) , we’ll also address this in code in future updates to the starter (wrap calls to localStorage with `try/catch`, PRs welcome)

---

<div class="post-metadata">

### Author: ![njuguna](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@njuguna](https://forum.builder.io/u/njuguna)
#### Post date: [September 11, 2021, 8:00am UTC](https://forum.builder.io/t/security-error-next-js-shopify/971/3 "2021-09-11T08:00:00Z")

</div>

Hey Azziz,  
thanks for the reply. Not very sure about the browser security settings…yes am using Chrome, I’ll try allowing access to local storage, maybe even try out a different browser and see if it persists.
