title: Unable to set cookie in NestJS GraphQL
body: <p>we have a NestJS GraphQL server running and we are trying to set an httpOnly cookie in an interceptor.
  The set seems to work if we call the mutation by Postman, showing the cookie in the cookies tab.
  But calling the mutation from the Playground, there is no trace of the cookie in the browser.
  Even accessing the <code>request.cookies</code> property in a guard gives us no results. What are we doing wrong?</p>
  <p>The server is <code>fastify</code> based and we are using <code>fastify-cookie</code> library to set the cookie.</p>
  <p>The interceptor code is:</p>
  <pre><code>@Injectable()
  export class AccessTokenCookieInterceptor implements NestInterceptor {
    intercept(context: ExecutionContext, next: CallHandler&lt;AccessTokens&gt;): Observable&lt;any&gt; {
      const ctx = GqlExecutionContext.create(context);
      const response: FastifyReply = ctx.getContext().response;
      return next.handle().pipe(
        tap(data =&gt; {
          response.setCookie('my_cookie', JSON.stringify(data), {
            httpOnly: true,
            path: '/',
          });
        }),
      );
    }
  }
  </code></pre>
  <p>The GQLModule:</p>
  <pre><code>GraphQLModule.forRoot({
    autoSchemaFile: join(process.cwd(), 'src/schema.gql'),
    sortSchema: true,
    context: ({ request, reply }) =&gt; {
      return {
        request,
        response: reply,
      };
    },
    ...
  }),
  </code></pre>
  <p>The guard where we read the cookie:</p>
  <pre><code>@Injectable()
  export class AccessTokenGuard implements CanActivate {
    async canActivate(context: ExecutionContext): Promise&lt;boolean&gt; {
      const ctx = GqlExecutionContext.create(context);
      const request = ctx.getContext().request;
  
      const cookie = request.cookies['my_cookie'];
      const tokens: AccessTokens = JSON.parse(cookie);
  
      request.finxTokens = tokens;
  
      return true;
    }
  }
  </code></pre>
  <p>Thank you for your help!</p>