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

貢獻者指南