erikras / erikras/react-redux-universal-hot-example

Not able to access req inside the ApiClient

Open
#752 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

When I am sending out requests using the ApiClient I will have to set the request header based on the cookie values.

In line 18 of client.js you do

```
const client = new ApiClient();
```

So the `req` property of an `ApiClient` object is empty. Which means the request cookie or header info cannot be retrieve this way.

So is there a way to get around this problem?

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.