The "X-Forwarded-Host" header may contain multiple values

Aperta
#184 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
express, javascript
Ambito
backend

Direzione di ricerca

Start by locating the Express middleware code that reads the X-Forwarded-Host header. Reproduce the case with a comma-separated header containing multiple values, then verify that the resulting behavior uses the first value as requested. No test file or implementation path is named in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The current implementation doesn't take into account the X-Forwarded-Host header may contain multiple values.
From the Apache mod_proxy docs:

Be careful when using these headers on the origin server, since they will contain more than one (comma-separated) value if the original request already contained one of these headers.

Probably in such case you should take the first value from the list.

Lingua principale
JavaScript
Stelle
921
Fork
185
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di prerender/prerender-node

Tutte le issue di prerender/prerender-node

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.