aws / aws/aws-appsync-community

[Question] How to access request cookies header in a JS Lambda Resolver

Open
#74 11 comments 3 reactions 0 assignees View on GitHub
feature-request
Dominant language
HTML
Stars
507
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Hi

I posted the same question here: https://github.com/aws-amplify/amplify-js/issues/4486

I'm trying to read a request cookie with the HttpOnly flag (so it's not accessible in the browser) in a javascript Appsync lambda resolver, apply sha256 to that cookie and send it to a new Http request.

I'm able to read the cookies in API Gateway:
https://github.com/isi-gach/api-gateway-read-request-cookie
But I haven't managed to do it in AppSync.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the linked API Gateway cookie example with the AppSync JavaScript Lambda resolver context, then review the related Amplify issue and AppSync request documentation. Done means establishing whether HttpOnly cookies are exposed to the resolver and documenting the supported access path or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, graphql, javascript
Domain
api, backend, cloud
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.