nftstorage / nftstorage.link

🪐 NFT.Storage Gateway, the IPFS gateway for NFT.Storage is not "another gateway", but a caching layer for NFTs that sits on top of existing IPFS public gateways. ***Notice: Uploads have been decommissioned.**** Learn more and find a new hot storage provider for uploading new assets: nft.storage/nft-storage-classic
https://nft.storage/nft-storage-classic
Other
46 stars 10 forks source link

fix: wasm module loading #176

Closed Gozala closed 1 year ago

Gozala commented 1 year ago

Addresses wasm module loading reported in #175 For details see https://github.com/WebAssembly/content-security-policy/blob/main/proposals/CSP.md#the-wasm-unsafe-eval-source-directive

cloudflare-pages[bot] commented 1 year ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2d14087
Status: ✅  Deploy successful!
Preview URL: https://19dd41b8.nftstorage-link.pages.dev
Branch Preview URL: https://fix-wasm-loading.nftstorage-link.pages.dev

View logs

ikreymer commented 1 year ago

It should probably be: connect-src 'self' https://polygon-rpc.com https://rpc.testnet.fantom.network. Not including self ends up blocking loading of local JS within the CID.

vasco-santos commented 1 year ago

Thanks @ikreymer ! Yes, it won't inherit from default-src the 'self'. Adding it now