sourcegraph/sourcegraph-public-snapshot

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

Ouverte

#37 873 ouverte le 28 juin 2022

 (2 commentaires) (0 réaction) (0 personne assignée)Go (1 374 forks)auto 404
good first issuesecuritysite-admin

Métriques du dépôt

Stars
 (10 290 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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

Guide contributeur