Skip to content

BrowserClient doesn't have a way to set withCredentials=true so Cookies aren't being sent accros domains. #27

Closed
@DartBot

Description

@DartBot

Originally opened as dart-lang/sdk#23088

This issue was originally filed by [email protected]


I don't see any way currently to set withCredentials=true on BrowserClient so that I can send cookies across domains (this is especially important in dev as I'm developing on one server and the dart client is on another server which I believe is a common use-case scenario).

What steps will clearly show the issue / need for enhancement?
1: I can easily allow cross-domain communication by setting CORS headers on the server side, as soon as I want to send back a cookie from the server to maintain state on the client side, I can't do it. I've looked at HTML5 localstorage, but that's not secure, I need to be able to set Cookies with HttpOnly and Secure flags so that JavaScript can't access it.
2: I see angular.dart made provision for the withCredentials flag to allow sending cookies across domains.

What is the current output?
Seeing cookie headers coming back from the server, but not on the request.

What would you like to see instead?
Seeing cookie headers on both the request and response.

What version of the product are you using? On what operating system?
Dart 1.9

Please provide any additional information below.
See my StackOverflow post: http://stackoverflow.com/questions/29427203/dart-browserclient-post-not-including-my-cookies

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions