Comments (4)
This is due to some metadata URIs pointing to servers that have CORS headers set in too restrictive way.
Iād recommend letting the NFT creators know about this so they can fix it (e.g. by hosting their NFT metadata on IPFS rather than a centralized server), and also to use a JSON proxy server in use-nft, so that NFTs metadata can be accessed when CORS headers are restricting access.
You can find an example of this for the use-nft website: https://github.com/spectrexyz/use-nft/blob/89e7c39a2b9c2962cbb481405e2e4baefe3a3862/website/src/App.tsx#L27-L28
Iād also recommend using an image proxy to serve optimized images: https://github.com/spectrexyz/use-nft/blob/89e7c39a2b9c2962cbb481405e2e4baefe3a3862/website/src/App.tsx#L20-L25
from use-nft.
Closing this, please reopen if needed :)
from use-nft.
thank you it solved my issue.
from use-nft.
Cool :)
from use-nft.
Related Issues (20)
- Detect image type
- Add Ethers as an optional peer dependency + import it dynamically
- Incorrect type for `error` HOT 3
- Invalid data received for ERC721Storage HOT 1
- Support audio fields HOT 2
- Add fetcher: OpenSea NFT API HOT 3
- Fetch the list of NFTs owned by an account HOT 4
- Why?
- Usage without React HOT 2
- Can`t get an image using useNft or fetchNft HOT 1
- When using OpenSea Polygon Minting Contract, no NFT image is found HOT 6
- Usage within NextJS HOT 3
- Add fetcher: ZORA API
- Module not found error HOT 4
- Cannot find namespace 'JSX'. HOT 5
- Add new field: owner
- ReactNFT.com for sale! HOT 1
- Add the received metadata in the returned values
- Publish to npm through CI ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from use-nft.