Skip to content

[Bug]: Cookies not forwarding in API CallsΒ #2058

@ScottKemp

Description

@ScottKemp

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have been using the Lowcoder API lots, but it has always been with the JWT generated by Lowcoder for the admin (for creating users, etc).

Now I am trying to use the Lowcoder API to reset the user's password and am trying to call /api/users/password (PUT). and am having problems with the resource and cookies.

Now I tried using the native LowCoder API resource, but had issues where the "forward cookies" seems broken (I filed a github issue for that.)

So I switched the generic REST API. I turned on forward cookies (both ALL and the LOWCODER_CE_SELFHOST_TOKEN) one. My user is logged in.

And then I tested it with a simple call to /api/users/me

But the result is always an "anonymous" user.

I was able to get it to work by hardcoding the header to the cookie as shown in the screen shot. So it seems the default Resource is not forwarding the cookies?

I verified that the request is sending the cookie to Lowcoder.

Expected Behavior

I would expect the cookies to get forwarded to the resource

Steps to reproduce

Image Image

Environment

2.7.4 Self Hosted

Additional Information

No response

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