By using AWS re:Post, you agree to the Terms of Use

HTTP API doesn't forward Cookies to Lambdas


Cookie headers are not forwarded to Lambdas

$ curl -H "Cookie: test"



exports.handler = async (event) => {
    const response = {
        statusCode: 200,
        body: JSON.stringify(event.headers) ,
    return response;
1 Answer
Accepted Answer

Are you using Payload Format Version 2? In v2, cookies are put into event.cookies:

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions