You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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".
Hi @mikeybellissimo, on web when an http request is done, it's the browser that handles the cookie. The error you get from the console shouldn't be an issue, it's just dart trying to set the cookie by itself though it's actually the browser that does that.
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();
The text was updated successfully, but these errors were encountered: