Skip to content

Commit

Permalink
Upgraded es-module-shims to v1.5.5 (#128)
Browse files Browse the repository at this point in the history
The current version of es-module-shims provided
by importmap-rails (v1.4.6) requires allowing
`frame-src: blob:` in an app's CSP policy (it
creates an iframe with a blob as it's source
in order to perform feature detection). This is
quite a permissive thing to allow in csp and
I wouldn't recommend it if there is an alternative.

Since v1.4.7 es-module-shims no longer uses a
blob and it will work with `script-src: 'self'`
instead. I've upgraded to the latest version,
which is v1.5.5. For more details about the
CSP issue and it's fix see:

* guybedford/es-module-shims#265
* guybedford/es-module-shims#290
  • Loading branch information
iainbeeston committed May 22, 2022
1 parent 8b1e37e commit 57963a8
Show file tree
Hide file tree
Showing 3 changed files with 838 additions and 797 deletions.

0 comments on commit 57963a8

Please sign in to comment.