gogs / gogs/gogs

Content-Security-Policy

Open
#3,918 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

💻 ui 🔨 enhancement
Dominant language
Go
Stars
47.8k
Forks
5.1k
Avg merge
7h 23m
Merged PRs (30d)
5

Description

There seems to be a bunch of inline scripts or style rules such as this that don't play nice with CSP. These should be replaced by a CSS class.

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 templates/repo/settings/hook_settings.tmpl at the linked line, then search the templates for the other inline scripts or style rules that conflict with CSP. Replace the identified inline styling with CSS classes and verify that the affected hook settings pages remain usable under CSP.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.