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
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();