CloudFront functions accessing full URL or # fragment identifier

0

Looks like the URL is pre-parsed into uri and querystring, but it leaves out location property or fragment identifier. We use vue.js and it creates URL's like domain.com/#/path/to/something/?optional=true and I want to conduct a check against the vue path. Is there a way to achieve this without proxying it through an actual server?

I've also attempted this with lambda@edge python snippet printing out event. Looks like it has the exactly the same behaviour if configured as viewer-request handler.

Dom MSK
已提問 5 個月前檢視次數 333 次
1 個回答
0
已接受的答案

Looks like is just lack of knowledge on browser behaviour. URL fragments are not sent by the browser to server hence I can't retrieve it.

Good blog post on this

Dom MSK
已回答 5 個月前
profile picture
專家
已審閱 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南