Skip to content

Using request JS for external APIs : ability to disable csrf token #45

Closed
@adrienpoly

Description

@adrienpoly

I wanted to use RequestJs for all my API calls including external calls (replace Axios and remove Fetch polyfills).

But RequestJs adds the CSRF token headers to all request and some API service will throw an error if this is included in the Header.

Is this out of the scope of that library or could we imagine to pass a params csrfToken: false to disable it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions