renovation_core.dart icon indicating copy to clipboard operation
renovation_core.dart copied to clipboard

Cookie not sent with socket.io headers when using Cookies for authentication

Open assemmarwan opened this issue 3 years ago • 0 comments

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
};

assemmarwan avatar Aug 10 '20 09:08 assemmarwan