skip to Main Content

Javascript – Getting CORS heading missing error for my code

Access to XMLHttpRequest at 'https://api.coingecko.com/api/v3/coins/markets?vs_currency=INR&order=market_cap_desc&per_page=100&page=1&sparkline=false' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. this is my code: import axios from 'axios'; import React, { useEffect, useState } from 'react'; import…

VIEW QUESTION
Back To Top
Search