Skip to content

Conversation

@alexboisselle-rd
Copy link
Contributor

The browser single bundle contained eval coming from webpack & babel polyfills which are violating strict CSP policies. Reducing these policies is a significant security risk for our business. Here are the recommendations to solve this issue, which are what I've implemented here.

I've only implemented this for browser-single, since that is what our team is using.

Discussion: webpack/webpack#5627

Solution within discussion: webpack/webpack#5627 (comment)

More on the topic from famous Mathias: https://mathiasbynens.be/notes/globalthis

@coveralls
Copy link

coveralls commented Apr 15, 2020

Coverage Status

Coverage remained the same at 87.097% when pulling c6a4fb0 on alexboisselle-rd:globalthis-csp-fix into 73461dc on masotime:master.

@masotime
Copy link
Owner

This looks reasonable, thanks for submitting this 👍

@masotime masotime merged commit e9a6d6a into masotime:master Apr 16, 2020
@masotime
Copy link
Owner

Published as v2.6 - let me know if it works.

@alexboisselle-rd
Copy link
Contributor Author

Looks good!

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

Successfully merging this pull request may close these issues.

3 participants