aws / aws/aws-appsync-community
[Question] How to access request cookies header in a JS Lambda Resolver
- 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
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