sourcegraph/sourcegraph-public-snapshot

Why are cookies excluded from /-/debug/headers?

开放

#37,873 创建于 2022年6月28日

 (2 条评论) (0 个反应) (0 位负责人)Go (1,374 个派生)auto 404
good first issuesecuritysite-admin

仓库指标

星标
 (10,290 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Question description

Question in title. Since SG uses some cookies for authentication and the like, it would be helpful to be able to see them in the headers debug page

Is your question related to a problem? If so, please describe or link to another issue.

Our organization has our own internal routing/proxy service in front of internal services like sourcegraph. In making sure everything is working as expected, I have been using the headers tab. If cookies impact the service, then it makes sense to me to include that info here.

Additional context

Tried looking in git blame to see if theres a reason for the below line , but it seems to have been here since open sourcing the code

https://github.com/sourcegraph/sourcegraph/blame/f86a5b342852697275bec5b5c94d02c86e9e007f/cmd/frontend/internal/app/app.go#L85

贡献者指南