Problem/Motivation

The importmap currently requires a CSP with unsafe-inline which is not a good practice.

Steps to reproduce

Proposed resolution

We could automatically add the hash of the importmap to the CSP: https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib...

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork importmap-3564518

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prudloff created an issue. See original summary.

prudloff’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • prudloff committed 0e47fa4f on 1.x
    feat: #3564518 Compatibility with csp module
    
    By: prudloff
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.