aws / aws/serverless-java-container

Problems Reading Cookies

未关闭
#274 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
need feedback
主要语言
Java
星标
1.6k
派生
574
PR 合并指标
30 天内没有已合并 PR

描述

* Framework version: 1.3.2
* Implementations: Spark

## Scenario
Lambda is fronted by API Gateway which is in turn fronted by cloudfront which is the host of the public vanity URL.

Code is the lambda is looking for a cookie but cannot get get. I assume that this is because it's not getting x-forwarded data? In a similar situation with a ELB running Spring/tomcat we had a similar problem and needed to add the following properties to Spring:

server.tomcat.remote-ip-header=x-forwarded-for
server.tomcat.protocol-header=x-forwarded-proto

I assume there is something like this for Spark? I don't see anything in their documentation?

## Expected behavior
Can read cookies on the vanity domain

## Actual behavior
no cookies :(

## Steps to reproduce
Create the above scenario

Thank You!

贡献指南

打开贡献指南

调研方向

Start by tracing how cookies are exposed to the Java Spark implementation when requests pass through API Gateway and CloudFront. Compare the reported vanity-domain scenario with the existing serverless-java-container documentation and request handling behavior; done means cookies can be read in that deployment path.

由索引模型根据 Issue 内容生成。

评估

技术栈
aws, java
领域
api, backend, cloud
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。