grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.56k stars 762 forks source link

Request Headers don't contains Cookie #1204

Closed chbinghu closed 2 years ago

chbinghu commented 2 years ago

I have two question about that。

  1. Why Cookie is not in grpc web request headers?
  2. How could I send cookie throw grpc web http request? image
chbinghu commented 2 years ago

I found grpc-web request with cookie is ok.

  1. we should set some cookie to a domain.
  2. if we send cookie to other domain(cross site), same-site should be none. the defalut value is lax, which prevent cookie send to corss site.