Webform backend causes requests to third-party servers

Created on 19 January 2023, almost 2 years ago
Updated 20 January 2023, almost 2 years ago

Problem/Motivation

I am trying to secure a Drupal instance by introducing a strict Content Security Policy. Excluding all external requests makes the backend for Webform configuration unusable. Scripts, stylesheets and images are requested from these sites: https://unpkg.com https://cdn.jsdelivr.net https://cdnjs.cloudflare.com

This seems to be the only compontent of Drupal that requires this. It would be very desirable to include the affected resources in the module itself, making it possible to implement a Content Security Policy that exludes all external requests.

Steps to reproduce

Log in to a Drupal instance, configure an existing web form using a URL such as /admin/structure/webform/manage/
and observe requests in your browser’s development tools

Proposed resolution

Include the requested assets in the Webform module so that they can be requested from the Drupal site itself.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

6.1

Component

Miscellaneous

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024