RocketChat / RocketChat/Rocket.Chat

Updated to 3.16. There was an error Content-Security-Policy

Open
#22,947 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Updated to 3.16. There was an error Content-Security-Policy
"Refused to load the script 'https://lib.usedesk.ru/secure.usedesk.ru/widget_111111.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback."

While disabled in the general settings Content-Security-Policy.
The documentation is empty https://github.com/RocketChat/docs/blob/master/guides/administration/administration/settings/setup-wizard.md

  1. You write "basically the inline scripts were moved to a js file" - in which one?
  2. How do I whitelist my script?

Originally posted by @DocDocTeam in https://github.com/RocketChat/Rocket.Chat/issues/20724#issuecomment-899493046

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with guides/administration/administration/settings/setup-wizard.md and the Content-Security-Policy error described in this issue. Trace the 3.16 change referenced by the linked issue to identify the JavaScript file involved and the supported whitelist procedure. Done means the documentation answers both questions and accurately reflects the setting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, security
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.