Skip to content

fix(server): updated default CSP config to support videos from V3 player#29830

Open
l0ll098 wants to merge 1 commit into
immich-app:mainfrom
l0ll098:fix/29441-csp-for-videos-in-v3
Open

fix(server): updated default CSP config to support videos from V3 player#29830
l0ll098 wants to merge 1 commit into
immich-app:mainfrom
l0ll098:fix/29441-csp-for-videos-in-v3

Conversation

@l0ll098

@l0ll098 l0ll098 commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Description

Immich V3 added a new video player that had the side effect of breaking current CSP configuration on Chromium-based browsers, as also seen with issue #29441.

This PR addresses those issues by adding the missing CSP directive.
Fixes #29441

How Has This Been Tested?

  • In order to test this, we have to enable the default CSP policy with the env variable IMMICH_HELMET_FILE.
  • Run Immich V3 and upload a video
  • With these changes applied, even Chromium-based browsers should have no problems in playing back the video you previously uploaded. Without those changes, Chromium didn't played the video and complained about missing CSP directives.

Checklist:

  • I have carefully read CONTRIBUTING.md
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if applicable
  • I have no unrelated changes in the PR.
  • I have confirmed that any new dependencies are strictly necessary.
  • I have written tests for new code (if applicable)
  • I have followed naming conventions/patterns in the surrounding code
  • All code in src/services/ uses repositories implementations for database calls, filesystem operations, etc.
  • All code in src/repositories/ is pretty basic/simple and does not have any immich specific logic (that belongs in src/services/)

Please describe to which degree, if any, an LLM was used in creating this pull request.

No LLMs were used.

Immich V3 added a new video player that had the side effect of breaking
current CSP configuration on Chromium-based browsers.
See issue 29441
@l0ll098 l0ll098 requested a review from danieldietzler as a code owner July 11, 2026 09:47
@immich-push-o-matic

Copy link
Copy Markdown

Label error. Requires exactly 1 of: changelog:.*. Found: . A maintainer will add the required label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default CSP configuration breaks video playback on Chromium browsers

1 participant