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!

貢獻指南

開啟貢獻指南

研究方向

先追蹤當請求經過 API Gateway 和 CloudFront 時,Cookie 如何暴露給 Java Spark 實作。將回報的 vanity-domain 情境與現有的 serverless-java-container 文件及請求處理行為進行比較;當可以在該部署路徑中讀取 Cookie 時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
aws, java
領域
api, backend, cloud
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。