Skip to content

cookie is not set in the browser #30

@Sumukha210

Description

@Sumukha210

image

Even though the cookie is present with response, the cookie is not setting the browser. I am also setting credentials to true.

const client = createClient({
  url: "http://localhost:4000/graphql",
  fetchOptions: {
    credentials: "include",
  },
});
app.use(
    cors({
      origin: "http://localhost:3000",
      credentials: true,
    })
  );

I am also setting the cors in the server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions