Closed shoe-diamente closed 4 years ago
@shoe-diamente I conducted an experiment. I copied your code to one of my resolvers (.net core 2.2). In the posponse I found the required header Set-Cookie
. Is this problem still actual?
I started using graphql-dotnet/conventions
and moved away from graphl-dotnet/server
. In hindsight I don't think it was due to graphql-dotnet/server
, but it's just a feeling. I'll close it.
I have a mutation which accesses the
HttpContext
fromIHttpContextAccessor
and sets the cookies in the response via:This same exact code, put in a .NET Core controller works. When put in a GraphQL mutation it doesn't seem to expose the
Set-Cookie
header in the response.My setup code is the following:
What could be the cause of this?