A stupid simple Google Cloud Function that responds to an HTTP request with a cookie from a request's HTTP headers.
This is NOT an official Google product.
- Google Cloud Platform project
- gcloud set up and initialized for a project with the Cloud Functions API enabled.
git clone https://github.com/agmsb/gcf-cookies.git && cd gcf-cookies && gcloud functions deploy gcf-cookies --runtime nodejs6 --entry-point helloCookie --trigger-http
Use a client like Postman to alter your http request and set cookie in your request header. You can also use this lightweight client from Apigee. See the GIF below for reference.