web icon indicating copy to clipboard operation
web copied to clipboard

Web interface renders incorrectly due to CSP in Firefox

Open Quintasan opened this issue 1 year ago • 7 comments

Versions

  • Pi-hole: v6.0.5
  • AdminLTE: v6.0.2
  • FTL: v6.0.4

Platform

  • OS and version: NixOS 24.11 (Vicuna)
  • Platform: Podman

Expected behavior

Web interface renders correctly in Firefox

Actual behavior / bug

The web interface looks broken on Firefox with a lot of CSP violations in console

Content-Security-Policy: Ustawienia strony zablokowały zastosowanie wbudowanego stylu (style-src-attr), ponieważ narusza on następującą dyrektywę: „default-src 'self' 'unsafe-inline' 'nonce-bW96LWV4dGVuc2lvbjovL2U3ZTI5MGNkLWFmMjItNDE3Yi1hNmU4LWRhMGY3ODE3ZDU4Ni8='”

Sorry for Polish, but I don't know how to change web developer tools language only.

Surprisingly, it works in Chrome

Debug Token

  • URL: https://tricorder.pi-hole.net/fne70a5j

Screenshots

Image

Image

Quintasan avatar Mar 19 '25 19:03 Quintasan

This seems to be a browser issue.

Disable all your browser extensions and try again. Does this fix the issue?

rdwebdesign avatar Mar 19 '25 19:03 rdwebdesign

What version of Firefox are you using? Do you use any browser plugins? Does it render correctly in incognito mode?.

yubiuser avatar Mar 19 '25 19:03 yubiuser

@yubiuser It doesn't, but I created a new profile, and it did work, so I suspect that @rdwebdesign is correct and it's an extension problem.

I did disable Bitwarden in private mode and it worked. Perhaps it's Bitwarden extension mucking up stuff

Quintasan avatar Mar 19 '25 19:03 Quintasan

It was Metamask for me

HenrysCat avatar Mar 19 '25 20:03 HenrysCat

Also Metamask here

nfacha avatar Mar 19 '25 20:03 nfacha

Metamask +1

mathias1xxX avatar Mar 19 '25 23:03 mathias1xxX

This seems to be related to https://github.com/MetaMask/metamask-extension/issues/31094

rdwebdesign avatar Mar 19 '25 23:03 rdwebdesign