[GH-ISSUE #406] [Issue]: Broken TTS since 1.5.7 #170

Closed
opened 2026-10-20 17:25:51 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Stegorix on GitHub (May 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/406

Originally assigned to: @TheLonelyDevil9 on GitHub.

Summary

Since the update to 1.5.7 TTS playback is not possible anymore

Expected behavior

Hear the TTS Voice from messages or even the preview button

Actual behavior

Error in App: "Failed to load because no supported source was found."
Error in Browser console: "Loading media from 'Loading media from 'blob:https://marinara.example.com/<uid>' violates the following Content Security Policy directive: "default-src 'self'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback. The action has been blocked."

Steps to reproduce

  1. Install 1.5.7
  2. Configure TTS Provider (For me openai compatible "speaches" https://github.com/speaches-ai/speaches/)
  3. Press the preview button

Environment

  • Marinara Engine version: 1.5.7
  • Install type: docker
  • OS + version: Unraid 7.2.0
  • Browser or app shell: Vivaldi

Additional context

I use traefik as a load balancer. (That's why my url contains https) But i tested this with a direct connection. Same error.

Possible solution:

Adding "media-src 'self' blob:" to const CONTENT_SECURITY_POLICY in "packages/server/src/middleware/security-headers.ts" seems to resolve this.
(I only tested this by directly editing the corresponding js file in the docker container
(/app/packages/server/dist/middleware/security-headers.js))

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • [] I DID NOT read this template and provide the requested details.
Originally created by @Stegorix on GitHub (May 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/406 Originally assigned to: @TheLonelyDevil9 on GitHub. ## Summary Since the update to 1.5.7 TTS playback is not possible anymore ## Expected behavior Hear the TTS Voice from messages or even the preview button ## Actual behavior Error in App: "Failed to load because no supported source was found." Error in Browser console: "Loading media from 'Loading media from 'blob:https://marinara.example.com/<uid\>' violates the following Content Security Policy directive: "default-src 'self'". Note that 'media-src' was not explicitly set, so 'default-src' is used as a fallback. The action has been blocked." ## Steps to reproduce 1. Install 1.5.7 2. Configure TTS Provider (For me openai compatible "speaches" https://github.com/speaches-ai/speaches/) 3. Press the preview button ## Environment - Marinara Engine version: 1.5.7 - Install type: docker - OS + version: Unraid 7.2.0 - Browser or app shell: Vivaldi ## Additional context I use traefik as a load balancer. (That's why my url contains https) But i tested this with a direct connection. Same error. ## Possible solution: Adding "media-src 'self' blob:" to const CONTENT_SECURITY_POLICY in "packages/server/src/middleware/security-headers.ts" seems to resolve this. (I only tested this by directly editing the corresponding js file in the docker container (/app/packages/server/dist/middleware/security-headers.js)) ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:51 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#170
No description provided.