Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

No way to get a CSRF token when using creds-based auth and cookies #11

Closed
@bts

Description

@bts

CSRF cookies seem to be set in response to requests authenticated with a Bearer token, but not in response to those authenticated with a cookie the user logging in with credentials.

It seems like this functionality should be swapped:

  • Responses to Bearer-authenticated (API) requests should not set a CSRF cookie
  • Responses to Cookie-authenticated the user logging in with creds (browser) requests should set a CSRF cookie

See also #10

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