Skip to content

Commit

Permalink
added https://utfs.io/ to img-src to avoid css errors (#598)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaBonde committed Sep 10, 2024
1 parent 89e9b44 commit 52ad205
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 0 additions & 2 deletions src/hemsedal24/bilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 52ad205

Please sign in to comment.