mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
Add blobs to "img-src" for Helia CSP (#2974)
This commit is contained in:
@@ -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,
|
||||
],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user