Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing “script-src-attr” Content-Security-Policy #6168

Closed
DanWin opened this issue Jan 15, 2024 · 2 comments
Closed

Missing “script-src-attr” Content-Security-Policy #6168

DanWin opened this issue Jan 15, 2024 · 2 comments
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor

Comments

@DanWin
Copy link

DanWin commented Jan 15, 2024

Describe the current behavior

When enabling CSP, the following issue is reported:
Content-Security-Policy: The page’s settings observed the loading of a resource at inline (“script-src-attr”). A CSP report is being sent.
Disabling report-only mode breaks the page.

Steps to reproduce

  1. Install latest peertube 6.0.2
  2. Enable CSP
  3. Open the website and observe above error message

Describe the expected behavior

Enabling CSP should not break functionality. A script-src-attr policy should be added to achieve this, most likely it will need to allow "unsafe-inline".

Additional information

  • PeerTube instance:

    • Version: 6.0.2
    • NodeJS version: v21.5.0
  • Browser name, version and platforms on which you could reproduce the bug: Current Firefox and Chrome versions in Ubuntu

@TNTBOMBOM
Copy link

cc @Chocobozzz

@Chocobozzz Chocobozzz added the Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor label Feb 28, 2024
@Chocobozzz
Copy link
Owner

Fixed by c753812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor
Projects
None yet
Development

No branches or pull requests

3 participants