From 52ad2056897cff6141537e5d84e0d8b846e93f16 Mon Sep 17 00:00:00 2001 From: Maria Katrin Bonde <78419778+MariaBonde@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:08:04 +0200 Subject: [PATCH] added https://utfs.io/ to img-src to avoid css errors (#598) --- next.config.js | 2 +- src/hemsedal24/bilder.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/next.config.js b/next.config.js index 665a94e07..4243c1104 100644 --- a/next.config.js +++ b/next.config.js @@ -21,7 +21,7 @@ const ContentSecurityPolicy = ` process.env.NODE_ENV !== 'production' ? "'unsafe-eval'" : '' }; style-src 'self' 'unsafe-inline' http://hello.myfonts.net/; - img-src 'self' data: https://medium.com/ https://cdn-images-1.medium.com/ https://images.transistor.fm/ https://i.ytimg.com/; + img-src 'self' data: https://medium.com/ https://cdn-images-1.medium.com/ https://images.transistor.fm/ https://i.ytimg.com/ https://utfs.io/; media-src 'self' https://media.transistor.fm/; frame-src 'self' https://www.youtube-nocookie.com/; base-uri 'self'; diff --git a/src/hemsedal24/bilder.tsx b/src/hemsedal24/bilder.tsx index fd4006dff..32265858e 100644 --- a/src/hemsedal24/bilder.tsx +++ b/src/hemsedal24/bilder.tsx @@ -26,10 +26,8 @@ export default function Bilder() { const fetchFiles = async () => { const response = await fetch('/api/files'); const data = await response.json(); - console.log(data); setFilesData(data); }; -console.log((width/21)+(((width / 100) | 0)/4)) const [filesData, setFilesData] = useState(null); useEffect(() => { fetchFiles();