react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Demo code sandbox provided in react-admin landing page has error

Open alixdeschamps opened this issue 6 years ago • 3 comments

What you were expecting: This link https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple in the react-admin landing page to provide a sandbox without errors

What happened instead: The code sandbox prints the error "Failed to read the 'localStorage' property from 'Window': Access is denied for this document."

Steps to reproduce: The landing page https://marmelab.com/react-admin/ provides a link to a code sandbox https://codesandbox.io/s/github/marmelab/react-admin/tree/master/examples/simple .

This link is a clickable image under "Get started in minutes" Screenshot from 2020-01-20 10-56-12

The code sandbox prints the error "Failed to read the 'localStorage' property from 'Window': Access is denied for this document." Screenshot from 2020-01-20 10-59-12

Other information: Both code sandbox console and chrome console mention an error during service worker registration Screenshot from 2020-01-20 11-10-30

Environment Chrome Version 79.0.3945.117 (Official Build) (64-bit) Ubuntu 18.04.3 LTS

alixdeschamps avatar Jan 20 '20 10:01 alixdeschamps

Are you using incognito mode/private browsing?

fzaninotto avatar Jan 20 '20 14:01 fzaninotto

Also, a simple search on StackOverflow shows that you may have too conservative privacy settings in Chrome.

https://stackoverflow.com/a/44069936/1333479

fzaninotto avatar Jan 20 '20 14:01 fzaninotto

Ha yeah, that was the problem. Thanks!

alixdeschamps avatar Jan 20 '20 14:01 alixdeschamps