mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #406] [Issue]: Broken TTS since 1.5.7 #170
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
Environment
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: