Skip to content

Commit 2c25e19

Browse files
committed
get on /me endpoint test
1 parent 90d1958 commit 2c25e19

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/back4App/Header/Header.react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ export default class Header extends React.Component {
1717
But it was actualy not possible to use the subscribeTo decorator in the Header component
1818
before the App was injected in the router. This is a simple temporary solution.
1919
*/
20-
fetch('https://dashboard.back4app.com/me')
20+
fetch('https://dashboard.back4app.com/me', {
21+
method: 'GET',
22+
credentials: 'include'
23+
})
2124
.then(response => {
22-
console.log(response.toJson());
25+
console.log(response.json());
2326
});
2427
}
2528
render() {

0 commit comments

Comments
 (0)