Add blobs to "img-src" for Helia CSP (#2974)

This commit is contained in:
GimluCom
2025-08-28 11:44:33 +02:00
committed by GitHub
parent 0f31f184bd
commit cbdf9593e9
+5
View File
@@ -2,6 +2,8 @@ import type CspDev from 'csp-dev';
import config from 'configs/app';
import { KEY_WORDS } from '../utils';
export function helia(): CspDev.DirectiveDescriptor {
if (!config.UI.views.nft.verifiedFetch.isEnabled) {
return {};
@@ -12,5 +14,8 @@ export function helia(): CspDev.DirectiveDescriptor {
'https://delegated-ipfs.dev',
'https://trustless-gateway.link',
],
'img-src': [
KEY_WORDS.BLOB,
],
};
}