title: Cross-Origin Resource Sharing Error (CORS) Angular 10
body: <p>I was made Web Application Using Angular 10 (Front-end) and Node.js(Backend). But when I send requests by adding Headers it was not working. (It was worked when Turn off CORS and send a request on Chrome)
  I was found lack some similar answers on StackOverflow but unfortunately, those are not worked for me :|</p>
  <p>I sent a request as follows,</p>
  <pre><code>getAllSubmissions() {
      let token = sessionStorage.getItem('auth-token');
      let path = this.globe.base_path + 'get-submissions';
      this.http.get&lt;any&gt;(path, {headers:{'Access-Control-Allow-Origin':'*', 'auth-token':token}}).toPromise().then(data =&gt; {
        this.allsubmissoinsFiltered = data.filter(sub =&gt; sub.status != 'active')
        this.allSubmissionsCount = this.allsubmissoinsFiltered.length;
      }).catch(err =&gt; {
        console.log(err)
      })
    }
  </code></pre>
  <p>as well as, also i was try following code,</p>
  <pre><code>getAllSubmissions() {
      let token = sessionStorage.getItem('auth-token');
      var header = { headers: new HttpHeaders().set('auth-token', token) }
      let path = this.globe.base_path + 'get-submissions';
      this.http.get&lt;any&gt;(path, header).toPromise().then(data =&gt; {
        this.allsubmissoinsFiltered = data.filter(sub =&gt; sub.status != 'active')
        this.allSubmissionsCount = this.allsubmissoinsFiltered.length;
      }).catch(err =&gt; {
        console.log(err)
      })
    }
  </code></pre>
  <p>both types are not working properly. It was displayed error as follows,
  <a href="https://i.stack.imgur.com/iTDb8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iTDb8.png" alt="Console displayed Error" /></a></p>
  <p><a href="https://i.stack.imgur.com/w0bMK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w0bMK.png" alt="On Network" /></a></p>
  <p><a href="https://i.stack.imgur.com/CClhg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CClhg.png" alt="enter image description here" /></a></p>
  <p>How can I fix this issue? Hopefully waiting for your valuable response!</p>