CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs

405 Responses Need `Allow` Header

Aperta
#287 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
3
Fork
6
Merge medio
2g 47m
PR unite (30g)
4

Descrizione

RFC 9110 §15.5.6 requires `Allow` on a 405.

Related, on the 200 path: `configureWebAnnoHeadersFor()` emits `Allow: GET,OPTIONS,HEAD,PUT,PATCH,DELETE,POST`, advertising methods some routes reject with 405.

We are noticing that the 405 response codes occur as expected but their Allow header value can be missing or incorrect. Check all instances of where a 405 is returned and the resulting 'Allow' header. Line up the 'Allow' header value with the actual list of available headers. Do not emit values that are incorrect.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Cerca nella codebase JavaScript ogni risposta 405 e configureWebAnnoHeadersFor(), quindi esamina come ogni route determina i metodi disponibili. Verifica che ogni 405 includa un header Allow che elenchi solo i metodi accettati dalla route e che il percorso 200 non pubblicizzi i metodi rifiutati.

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

Valutazione

Stack tecnologico
javascript
Ambito
api, backend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
68/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.