Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Security Policy blocks script because of JSON.parse() or localStorage.getItem() #29

Open
raspi opened this issue Oct 4, 2018 · 2 comments

Comments

@raspi
Copy link

raspi commented Oct 4, 2018

Firefox Content Security Policy gives this error:

SecurityError: The operation is insecure.

It gives reference to this line:
https://github.com/Fugiman/deckmaster/blob/da99f7ceae6e8a7bb54eefba4f8b2704e4c0a32e/overlay/src/store.js#L32

which is

globalHide: JSON.parse(localStorage.getItem(globalHideKey)) || false,
@MarkRH
Copy link

MarkRH commented Oct 5, 2018

I wondered why I couldn't get this working in Firefox 62 in a stream I was watching.

@MarkRH
Copy link

MarkRH commented Nov 17, 2018

FYI, I got it working in Firefox 63 by allowing all 3rd-party cookies. Not sure if that security warning still applies now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants