It's not possible to access page headers via client JavaScript. You can get these request headers on your server side and then pass them into index.html of your React app. For example:
//in index.html
...
...
Then in your app you can access the headers via window.__INITIAL_HEADERS__ variable.