Dart BrowserClient POST not including my cookies

后端 未结 1 1932
故里飘歌
故里飘歌 2021-01-15 03:39

I\'m doing a BrowserClient POST across domains and don\'t see my cookies being included.

This the response I\'m getting:

相关标签:
1条回答
  • 2021-01-15 04:27

    For cookies being sent to CORS requests, you need to set withCredentials = true. The browser client in the http package doesn't support this argument. You can use the HttpRequest from dart:html instead. See How to use dart-protobuf for an example.

    0 讨论(0)
提交回复
热议问题