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

Doesn't work with ember-cli-content-security-policy #42

Open
boris-petrov opened this issue May 10, 2021 · 2 comments
Open

Doesn't work with ember-cli-content-security-policy #42

boris-petrov opened this issue May 10, 2021 · 2 comments

Comments

@boris-petrov
Copy link

Installing (and using) this plugin doesn't work when also ember-cli-content-security-policy is used - as this plugin adds a script tag which is invalid in a strict CSP and ember test fails.

Not sure how this could be fixed though. I personally added 'sha256-mxS7BMcPyFkeNLsw9IYNa3mPDc5sUvokKDSpKaYurPU=' in my CSP settings which is the SHA for that script tag... but that's not very nice. Any ideas?

@rwjblue might also have some idea?

@steveszc
Copy link
Owner

steveszc commented Jun 7, 2021

ember-cli-code-coverage has a similar problem, there are some ideas posted over there, but it looks like they don't have a solid solution that Just Works. ember-cli-code-coverage/ember-cli-code-coverage#214

@steveszc
Copy link
Owner

steveszc commented Jun 7, 2021

Some more detail in this issue. Seems like this is a pretty common problem without a great solution yet... adopted-ember-addons/ember-cli-content-security-policy#149

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