Created on 30 March 2021, about 4 years ago
Updated 18 April 2023, almost 2 years ago

Problem/Motivation

I'm missing the manifest-src. Refused to load manifest from X because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'manifest-src' was not explicitly set, so 'default-src' is used as a fallback. With Content Security Policy directive: "default-src 'self'" it works but it would be good to have the option to set a manifest-src.

Steps to reproduce

Add a site.webmanifest and set Content Security Policy directive: "default-src 'none'".

Proposed resolution

Add directive:
$directives[] = "manifest-src 'self'";

By the way also:

    $directives[] = "base-uri 'self'";
    $directives[] = "form-action 'self'";

would be nice.

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΈπŸ‡ͺSweden acke

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.

  • πŸ‡ΊπŸ‡ΈUnited States brad.bulger

    I'm getting reported rejections of my own site's site.webmanifest file for violating manifest-src, even though default-src is set to 'self'. So I don't know if adding an explicit manifest-src directive would help or not.

Production build 0.71.5 2024