we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "local json file get using xmlhttprequest cors error"
Sofia
10 May 2020
1//ATTENTION: API URL of file is in a local folder. 
2//It will fire CORS error as the URL is not http. 
3//Run it using a server. Then the error will be resolved.
4//eg.  use live server vs extension to run server.