jhen0409 / jhen0409/react-native-debugger

RND automatically adds some headers

Aperta
#282 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
feature/network-inspect
Lingua principale
JavaScript
Stelle
10.4k
Fork
815
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I've noticed when I am making a request without any headers like that:

![image](https://user-images.githubusercontent.com/5033716/47614410-3b5b4c00-daa8-11e8-8900-3fd45ca01c7c.png)

on my a backend with a handler:

![image](https://user-images.githubusercontent.com/5033716/47614430-79587000-daa8-11e8-9cfc-bb8f78a8a4d5.png)

I got a response:

![image](https://user-images.githubusercontent.com/5033716/47614454-ba508480-daa8-11e8-9589-b8aa33d3b959.png)

It's OK!

Then I'm making the next request and the request is the same:

![image](https://user-images.githubusercontent.com/5033716/47614473-03a0d400-daa9-11e8-93ba-b178ea344a9e.png)

and I'm seeing this request send next headers:

![image](https://user-images.githubusercontent.com/5033716/47614485-28954700-daa9-11e8-95cf-ae2499cc1634.png)

I didn't add "Cookie" header.

Requesting without RND works fine.

React Native Debugger app version: 0.8.1
React Native version: 0.57.3
Platform: I use only Android
Is real device of platform: no
Operating System: macOS

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

No source file or test is named in the issue. Reproduce the requests with React Native Debugger 0.8.1 and React Native 0.57.3 on Android, compare the headers with and without the debugger, and trace where the unexpected Cookie header is introduced. Done means requests made through the debugger no longer receive a Cookie header unless one was supplied.

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

Valutazione

Stack tecnologico
react-native
Ambito
devtools, networking
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
28/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.