# Passing cookies to microservices

**URL:** <https://community.apollographql.com/t/passing-cookies-to-microservices/4114>\
**Category:** Server\
**Tags:** server, federation\
**Created:** [July 27, 2022, 7:16am UTC](https://community.apollographql.com/t/passing-cookies-to-microservices/4114 "2022-07-27T07:16:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhirschberger](https://avatars.discourse-cdn.com/v4/letter/b/e19b73/32.png) [@bhirschberger](https://community.apollographql.com/u/bhirschberger)\
**Post date:** [July 27, 2022, 7:16am UTC](https://community.apollographql.com/t/passing-cookies-to-microservices/4114/1 "2022-07-27T07:16:36Z")

</div>

Hello, I am using Apollo federation and I can’t seem to figure out how to pass cookies to my microservices (I want the cookies go from my client to the gateway then to the service) does anyone have any ideas?

This is what I have so far:

```auto
import { ApolloGateway, IntrospectAndCompose } from "@apollo/gateway";
import { ApolloServer } from "apollo-server";

const startServer = () => {
  const gateway = new ApolloGateway({
    
    supergraphSdl: new IntrospectAndCompose({

      subgraphs: [
        { name: 'authentication', url: 'http://192.168.1.52:6965/authenticationApi/graphql' }
      ],
    }),
  });

  const server = new ApolloServer({
    gateway,
  });

  server
    .listen({
      port: 4000,
    })
    .then(({ url }) => {
      console.log(`🚀 Server ready at ${url}graphql`);
    })
    .catch((err) => console.log("Error launching server", err));
};

startServer();

```
