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

Latest create-react-app doesn't let you build chrome extensions #5897

Closed
SoorajChandran opened this issue Nov 24, 2018 · 1 comment
Closed

Comments

@SoorajChandran
Copy link

With the new create-react-app the index.html in the build folder have an inline script.

Problems:

Not able to build Chrome extensions using create-react-app. Chrome blocks the execution of the inline scripts with the following message:

Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:". Either the 'unsafe-inline' keyword, a hash ('sha256-GgRxrVOKNdB4LrRsVPDSbzvfdV4UqglmviH9GoBJ5jk='), or a nonce ('nonce-...') is required to enable inline execution.

Is there any way around this?

@miraage
Copy link

miraage commented Nov 26, 2018

Put INLINE_RUNTIME_CHUNK=false to your .env files

@Timer Timer closed this as completed Nov 26, 2018
@lock lock bot locked and limited conversation to collaborators Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants