Skip to content

Set-Cookie not respected in redirects #425

Description

@waltonseymour

Currently requests made from fab runtime to endpoints which set a cookie and redirect (https://httpbin.org/cookies/set?freeform=test for example) do not set cookies.

I would expect this to have the same behavior as cloudflare workers which does in fact set the cookies from the redirect.

reference code:

  const forwarded_request = new Request(request);
  forwarded_request.headers.set("host", "httpbin.org");
  return new Request(
   `https://httpbin.org${url.pathname}${url.search}`,
    forwarded_request
  );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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