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

Javascript – Forbidden access error: following Directus SDK tutorial

I'm having trouble learning Directus SDK - loosely following: https://docs.directus.io/blog/building-a-personal-travel-journal-with-vue-js-and-directus.html#creating-a-journal-and-users-collection When I try to access data, I'm getting: GET http://127.0.0.1:8055/items/calibers 403 (Forbidden) I can access this from Chrome directly, just not the SDK. The details of the error in the…

VIEW QUESTION
Back To Top
Search