Skip to content

Cookies are not passed to the redirect calls #1434

@pylesage

Description

@pylesage

In case you get a redirect , the cookie recieved from the first result should be passed the following ones.
By now they are getting lost.

The usecase I encountered:

  • POST to a login api , the api response provides a cookie
  • following the redirect issues a second call (get or post based on config) but the recieved cookie is not passed to this second call.
  • the redirect call recieves a new cookie which is not valid anymore

A possible workaround is to read the cookies from the first call issued and passing it to the next ones manually.

I suspect we should copy the cookies recieved from the response to the next request here:

.apply(request.copy[Identity, T, R](uri = uri))

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