jhen0409 / jhen0409/react-native-debugger

RND automatically adds some headers

Open
#282 1 comment 0 reactions 0 assignees View on GitHub
feature/network-inspect
Dominant language
JavaScript
Stars
10.4k
Forks
815
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.