Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
fix(svg): remove mode: no-cors from request options
Browse files Browse the repository at this point in the history
  • Loading branch information
vikinatora committed Oct 29, 2021
1 parent ceac512 commit eedc494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/marketplaceNFT/InlineSVG.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const SVGImageLoader = ({ svgUrl }) => {
const [hasErrored, setHasErrored] = useState(false);
const loadSvg = async () => {
try {
const loadedSvg = await fetch(svgUrl, { mode: 'no-cors' });
const loadedSvg = await fetch(svgUrl);
const svgText = await loadedSvg.text();
setSvg(svgText);
setLoading(false);
Expand Down

0 comments on commit eedc494

Please sign in to comment.