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 of your site blocks the use of 'eval' in JavaScript` #802

Closed
3 of 4 tasks
zystudios opened this issue Nov 1, 2023 · 5 comments · Fixed by #814
Closed
3 of 4 tasks

Content Security Policy of your site blocks the use of 'eval' in JavaScript` #802

zystudios opened this issue Nov 1, 2023 · 5 comments · Fixed by #814
Assignees
Labels
enhancement New feature or request

Comments

@zystudios
Copy link

How do you envision this feature/change to look/work like?

Create a new project, run the extension in chrome , there is a error : disable function eval

But I don't use eval in any code, how can I resolve this, Thanks

Content Security Policy of your site blocks the use of 'eval' in JavaScript`
image

What is the purpose of this change/feature? Why?

resolve error message

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contribution

  • I would like to contribute to this RFC via a PR

Verify canary release

  • I verified that the issue exists in plasmo canary release

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@zystudios zystudios added the enhancement New feature or request label Nov 1, 2023
@lorypelli
Copy link

Same issue

@aiktb
Copy link

aiktb commented Nov 2, 2023

This only occurs in dev mode and is acceptable.

@lorypelli
Copy link

This only occurs in dev mode and is acceptable.

yes, but why?

@aiktb
Copy link

aiktb commented Nov 2, 2023

This only occurs in dev mode and is acceptable.

yes, but why?

parcel-bundler/parcel#8034.
Caused by an upstream parcel dependency.
There is an identical issue in parcel.

@louisgv
Copy link
Contributor

louisgv commented Nov 9, 2023

Thanks all for flagging. It seems the latest Chrome update basically block all eval CSP (which is needed for auto-reload for extension).

Let's see if there's a way to go around it.

@louisgv louisgv pinned this issue Nov 9, 2023
@louisgv louisgv self-assigned this Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants