I am fetching some data from WP REST API in Next.js with Isomorphic unfetch, how can I get response headers?
import fetch from 'isomorphic-unfetch';
class Blog extends React.Component {
static async getInitialProps() {
const res = await fetch('https://wordpress.org/news/wp-json/wp/v2/posts');
const data = await res.json();
return {
res: res,
data: data
};
}
render() {
console.log(this.props.res)
console.log(this.props.data)
return (
<h1>Blog</h1>
)
}
}
I don't see anything available in the console 
but headers are there when I just open url in browser 