CSP issues with recent versions of Gin Layout Builder

Created on 9 February 2023, over 1 year ago
Updated 11 February 2024, 5 months ago

Problem/Motivation

The dist version of gin_lb_js.js contains calls to eval(). This originates from this commit: https://git.drupalcode.org/project/gin_lb/-/commit/930ba6d085c8b8ca29c8d.... It requires unsafe-eval in a content security policy (CPS) for Gin Layout Builder to work. This is not desirable. Not sure what happened here with the build and whether this is intentionally or by accident.

Steps to reproduce

Use Gin Layout Builder in combination with a CSP that does not allow unsafe-eval.

Proposed resolution

Deliver assets that can be used safely.

Remaining tasks

-
- Review MR
- Merge MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands ricovandevin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024