Why fetch return a response with status = 0?
<p>I want to use fetch API to get a whole HTML document from URL.</p>

<pre><code>let config = {
method: 'GET',
headers: {
    'Content-Type': 'application/json',
    'Accept': 'text/html',
    'Accept-Language': 'zh-CN',
    'Cache-Control': 'no-cache'
},
mode: 'no-cors'};

fetch('http://www.baidu.com', config).then((res)=&gt; {
console.log(res);}).then((text)=&gt; {});
</code></pre>

<p>When I run the code in chrome, It triggers a request and returns html in the chrome network tab. but fetch res return:</p>

<p><a href="https://i.stack.imgur.com/7aF7A.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/7aF7A.jpg" alt="enter image description here"></a></p>

<p>Why status is 0 and how can I get the correct res like the one in the chrome network ?</p>