Chromium Based Browsers: document requires 'TrustedHTML' assignment #14516

Closed
opened 2025-11-02 11:15:03 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @Aetherinox on GitHub (May 22, 2025).

Description

On Firefox, Gitea works fine. However, on Chromium based browsers (Chrome, Opera, and Chromium), hardly anything on the page will load after you sign in, and in console, a series of errors are thrown:

jquery.js:1278 This document requires 'TrustedHTML' assignment.
(anonymous) @ jquery.js:1278
jquery.js:4665 This document requires 'TrustedHTML' assignment.
(anonymous) @ jquery.js:4665
jquery.js:4665 
        
       Uncaught TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment.
    at jquery.js:4665:6
    at jquery.js:4673:1
    at jquery.js:25:4
    at ./node_modules/jquery/dist/jquery.js (jquery.js:37:1)
    at __webpack_require__ (bootstrap:19:32)
    at index.js?v=1.23.8:15:574
    at index.js?v=1.23.8:15:771
    at index.js?v=1.23.8:236:25503
git.domain.com/:1 Refused to load manifest from 'data:application/json;base64,eyJu...' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'manifest-src' was not explicitly set, so 'default-src' is used as a fallback.

I have tried:

  • Chrome Incognito mode
  • Disabling all plugins
  • Installed and tried Opera
  • Tried opera in private mode
  • Restarted Gitea server
  • Installed a local copy of Gitea in Docker and tried accessing that copy; same scenario

No abnormal logs for the container itself, only the console for the browser.




Specs

Chrome:

  • Version 136.0.7103.114 (Official Build) (64-bit)
  • Version 137.0.7151.41 (Official Build) (64-bit)

Opera:

  • Update stream:Early Access
  • Core:118.0.5461.133
  • System:Windows 11 64-bit
  • Chromium version:133.0.6943.143

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Console errors

Image




Unable to click the dropdown.

Image

Git Version

2.47.2

Operating System

Linux Ubuntu 24 LTS

How are you running Gitea?

Pull docker image directly from Gitea source (no custom builds)

Database

MySQL/MariaDB

Originally created by @Aetherinox on GitHub (May 22, 2025). ### Description On Firefox, Gitea works fine. However, on Chromium based browsers (Chrome, Opera, and Chromium), hardly anything on the page will load after you sign in, and in console, a series of errors are thrown: ``` jquery.js:1278 This document requires 'TrustedHTML' assignment. (anonymous) @ jquery.js:1278 jquery.js:4665 This document requires 'TrustedHTML' assignment. (anonymous) @ jquery.js:4665 jquery.js:4665 Uncaught TypeError: Failed to set the 'innerHTML' property on 'Element': This document requires 'TrustedHTML' assignment. at jquery.js:4665:6 at jquery.js:4673:1 at jquery.js:25:4 at ./node_modules/jquery/dist/jquery.js (jquery.js:37:1) at __webpack_require__ (bootstrap:19:32) at index.js?v=1.23.8:15:574 at index.js?v=1.23.8:15:771 at index.js?v=1.23.8:236:25503 git.domain.com/:1 Refused to load manifest from 'data:application/json;base64,eyJu...' because it violates the following Content Security Policy directive: "default-src 'none'". Note that 'manifest-src' was not explicitly set, so 'default-src' is used as a fallback. ``` <br /> I have tried: - Chrome Incognito mode - Disabling all plugins - Installed and tried Opera - Tried opera in private mode - Restarted Gitea server - Installed a local copy of Gitea in Docker and tried accessing that copy; same scenario <br /> No abnormal logs for the container itself, only the console for the browser. <br /> --- <br /> ### Specs Chrome: - Version 136.0.7103.114 (Official Build) (64-bit) - Version 137.0.7151.41 (Official Build) (64-bit) <br /> Opera: - Update stream:Early Access - Core:118.0.5461.133 - System:Windows 11 64-bit - Chromium version:133.0.6943.143 ### Gitea Version 1.23.8 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots Console errors ![Image](https://github.com/user-attachments/assets/897213c8-4eef-45b7-8aeb-280a35c28e0a) <br /> --- <br /> Unable to click the dropdown. ![Image](https://github.com/user-attachments/assets/bdd3a6ba-648f-4284-98c0-7d852bf191fb) ### Git Version 2.47.2 ### Operating System Linux Ubuntu 24 LTS ### How are you running Gitea? Pull docker image directly from Gitea source (no custom builds) ### Database MySQL/MariaDB
GiteaMirror added the type/bug label 2025-11-02 11:15:03 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14516