skip to Main Content

Seo – In my Food ordering app which is built in reactJS, I am getting an CORS error in fetching swiggy's API.(It is a frontend project)

"I can resolve this issue by using the CORS Chrome extension. However, in that case, the app will work only on localhost. It will not work after deployment. API I am using: https://www.swiggy.com/dapi/restaurants/list/v5?lat=18.97210&lng=72.82460&is-seo-homepage-enabled=true&page_type=DESKTOP_WEB_LISTING" import RestaurantCard, { withPromotedLabel } from "./RestaurantCard";…

VIEW QUESTION
Back To Top
Search