Embedded player not working because of restrictive Content Security Policy #5

Closed
opened 2024-11-13 15:29:44 +00:00 by Numerica · 1 comment

We're trying to embed a player into another site, but current nginx configuration disallows it.
Besides, it is currently hardcoded therefore it cannot be configured.

The actual content-security-policy is here

add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self' data:; object-src 'none'; media-src 'self' data:; worker-src 'self'";

We think a possible solution would be to introduce an environment variable there.

Otherwise, we'd happily implement any workaround meanwhile

Thanks

We're trying to embed a player into another site, but current nginx configuration disallows it. Besides, it is currently hardcoded therefore it cannot be configured. The actual content-security-policy is here https://git.coopcloud.tech/coop-cloud/funkwhale/src/commit/b1aacaea7de7085ba7b027a774683d22299de478/nginx.conf.tmpl#L24 We think a possible solution would be to introduce an environment variable there. Otherwise, we'd happily implement any workaround meanwhile Thanks
Author

apparently this was all about allowig unauthenticated api requests

closing for now as i'm not reproducing the error above

apparently this was all about allowig unauthenticated api requests closing for now as i'm not reproducing the error above
Sign in to join this conversation.
No description provided.