renovation_core.dart
renovation_core.dart copied to clipboard
Cookie not sent with socket.io headers when using Cookies for authentication
When using cookies for authentication, the Cookies are not set in the headers.
final opts = <dynamic, dynamic>{
'path': path,
'transports': <String>['websocket'],
'extraHeaders': requiresAuthorization
? <String, String>{
'Authorization': RenovationRequestOptions.headers['Authorization']
// <=== "Cookie missing here, if any"
}
: null
};