Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create new dashboard: Content Security Policy #428

Open
chicagoandy opened this issue Nov 12, 2024 · 0 comments
Open

Cannot create new dashboard: Content Security Policy #428

chicagoandy opened this issue Nov 12, 2024 · 0 comments

Comments

@chicagoandy
Copy link

Problem/Motivation

In Grafana 10.2, creating a new Dashboard generates the following browser error:

SecurityError: Failed to construct 'Worker': Access to the script at 'blob:https://andyland.duckdns.org/a0a6e689-995d-4e6b-8704-99d3992241e1' is denied by the document's Content Security Policy.

at Jt (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:39:138778)
at z0 (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:39:381316)
at In (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/8779.5dae8c32eee2bd40de3c.js:1:2522)
at Xo (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/8779.5dae8c32eee2bd40de3c.js:51:32923)
at Suspense
at g (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:12:133441)
at th (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2378:39173)
at tt (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:25340)
at Re (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:4574)
at ot (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:12212)
at zt (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:286:18055)
at tt (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:27534)
at div
at https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3719.c065b2e146c4c8347d51.js:1:135436
at main
at div
at div
at div
at Pf (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2380:4677)
at Af (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2380:9995)
at Re (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:4574)
at ot (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:12212)
at Ke (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:11545)
at un (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:286:18357)
at y (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:5:188596)
at tt (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:295:21503)
at Kc (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2380:11398)
at div
at Xl (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2378:18744)
at y (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3379.020d2edcd8eb1d9f6d9a.js:151:9173)
at C (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/4239.c2eca2b0222ddf40980b.js:183:17550)
at d (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/3719.c065b2e146c4c8347d51.js:24:12171)
at g (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:12:133441)
at i (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:12:133950)
at pn (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/4239.c2eca2b0222ddf40980b.js:187:507)
at jf (https://andyland.duckdns.org/api/hassio_ingress/PXUh-IWjPxNWypz7DvOpt0CwaCuZQrWoBzOsLpQktxA/public/build/322.9e448e90c86f8dd2907e.js:2380:13056)

Expected behavior

A new dashboard is created

Actual behavior

Javascript content security policy error is raised

Steps to reproduce

Navigate to Dashboards
Click New

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant