http
http copied to clipboard
BrowserClient()..withCredentials = true don't send cookies when app is running with WebAssembly.
I use BrowserClient()..withCredentials = true to send same-site request with cookies to the API. Everything works as intended when the web app uses JavaScript engine. But on WebAssembly engine the 'cookie' header is not sent with the request.
On the server side I have set Access-Control-Allow-Origin, Access-Control-Allow-Methods, Access-Control-Allow-Headers and Access-Control-Allow-Credentials headers.