fix(csp): update ol and fix webpack global emit (#2138)#6009
Merged
erezrokah merged 2 commits intodecaporg:masterfrom Dec 7, 2021
Merged
fix(csp): update ol and fix webpack global emit (#2138)#6009erezrokah merged 2 commits intodecaporg:masterfrom
erezrokah merged 2 commits intodecaporg:masterfrom
Conversation
4 tasks
erezrokah
suggested changes
Dec 3, 2021
Contributor
erezrokah
left a comment
There was a problem hiding this comment.
Thanks @dagda1, this breaks our demo site and our e2e tests.
See error from the deploy preview:

erezrokah
reviewed
Dec 6, 2021
erezrokah
reviewed
Dec 6, 2021
6b12e9e to
859e083
Compare
erezrokah
suggested changes
Dec 7, 2021
Contributor
|
Added a comment, also not sure what's up with this check https://github.com/netlify/netlify-cms/pull/6009/checks?check_run_id=4446496928 as we don't use Azure pipelines |
Contributor
Author
I think it is because there was a merge conflict which is now fixed. Everything is.........green (at this time of writing). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
We are using netlify-cms for a client who has a strict csp policy that would forbid adding:
to the csp.
After looking into the problem, it would appear that rbush which is here in the dependency tree:
Is using
new Function("blah"calls which will get blocked by csp unless theunsafe-directives are added.Upgrading
olto6.9.0upgradesrbushto3.0.1where thenew Functioncalls have been replaced: