You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access to fetch has been blocked by CORS policy: Request header field swapi-node-version is not allowed by Access-Control-Allow-Headers in preflight response.
#119
Open
ishutka opened this issue
Jul 1, 2021
· 0 comments
When I use $axios or simple fetch() in my nuxt app to get data from "https://swapi.dev/api/" there are no errors because they have full list of request headers. But when I use swapi-node ( const swapi = require('swapi-node');swapi.get(https://swapi.dev/api/people/)...; ) I have got CORS error.
The text was updated successfully, but these errors were encountered:
When I use $axios or simple fetch() in my nuxt app to get data from "https://swapi.dev/api/" there are no errors because they have full list of request headers. But when I use swapi-node ( const swapi = require('swapi-node');swapi.get(https://swapi.dev/api/people/)...; ) I have got CORS error.
The text was updated successfully, but these errors were encountered: