grafana/public/app
Kristian Bremberg 35407142d0
Feature: Trusted Types support (#64975)
* Draft: Feature: Trusted Types support

* remove trusted-types package

* Create policy before jQuery and Angular is loaded and add feature flag

* Add trustedTypePolicies

* Sanitize scriptURL

* Add TT meta tag for test env

* Move trusted types into core

* Add DOMParser support for TrustedHTML

* Seperate RSS sanitization and add better TrustedHTML support

* Get test CSP header from config

* Remove dompurify dep from core

* Add documentation for trusted types

* Apply suggestions from code review

Co-authored-by: Kristian Bremberg <114284895+KristianGrafana@users.noreply.github.com>

* Add comment about Github discussion thread and things breaking

* Remove changes from News panel

* Remove TT feature toggle

* Expose TT and CSPReportOnly to frontend

* Log errors in console when CSP report only is enabled

* Log error for reporting and remove test mode

* Only insert CSP header in HTML for dev env

* Update docs

---------

Co-authored-by: Tobias Skarhed <tobias.skarhed@gmail.com>
Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2023-04-27 18:20:37 +02:00
..
angular Plugins: Remove secure socks proxy feature toggle (#66611) 2023-04-18 11:11:23 -06:00
core Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
features Check add DS permissions in advanced DS picker (#67237) 2023-04-27 16:51:31 +02:00
partials Chore: Migrates remaining Angular modals to React (#33476) 2021-04-28 15:22:28 +02:00
plugins Alerting: Make Loki & Prometheus instant vector by default (#66797) 2023-04-27 17:38:22 +03:00
polyfills WIP Chore: reduce strict errors (#40462) 2021-10-15 08:57:55 +02:00
routes Auth: Add authentication config frontend routes to api.go (#66931) 2023-04-25 13:13:55 +02:00
store NestedFolders: New Browse Dashboards views (#66003) 2023-04-12 10:44:01 +01:00
types Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00
app.ts Navigation: Unify Page component (#66951) 2023-04-24 16:41:32 +01:00
AppWrapper.tsx React Router: start migrating to v6 (#66921) 2023-04-27 07:18:38 +02:00
dev.ts Chore: Make "why-did-you-render" a dynamic import (#53121) 2022-08-08 15:33:49 +01:00
index.ts Feature: Trusted Types support (#64975) 2023-04-27 18:20:37 +02:00