Skip to content

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

Description

@ishutka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions