Skip to content

I get the "Refused to set unsafe header "cookie"" error when I try from flutter web #88

@mikeybellissimo

Description

@mikeybellissimo

Hi!

When I am using Flutter built on chrome and try to send a post request to my Express server to sign in, the cookie is not stored and the console reads the error : Refused to set unsafe header "cookie".

Here is the code that calls from the server side:

final response = await Requests.post("http://localhost:3000/signin",
json: {"username": username, "password": password},
withCredentials: true);

response.raiseForStatus();

  • OS: Windows 10 Home
  • Chrome Version 106.0.5249.119

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions