title: Ionic 5 native-http plugin is not identifying my headers, thus response is always 404 Page not found error
body: <p>I am using a native HTTP plugin for my API's in Ionic 5. (As suggested in <a href="https://ionicframework.com/docs/native/http" rel="nofollow noreferrer">https://ionicframework.com/docs/native/http</a>)</p>
  
  <p>However, after debugging the request I came into a conclusion that my headers are not considered and that is resulting a Page not found error. Can anyone help me out to resolve this issue?</p>
  
  <p>Here is my code snippet:</p>
  
  <pre><code>async signIn(){
      this.loader = this.presentLoadingWithOptions();
  
      let nativeCall = this.loginProvider.authenticateUser(this.username, this.password);
  
      from(nativeCall).subscribe(resp =&gt;{
  
           if(this.userType === "retailer"){           
                this.navCtrl.navigateForward('/retailer-dashboard');
           }
           else if(this.userType === "influencer"){
                this.navCtrl.navigateForward('/influencer-dashboard');
           }
      });
  }
  </code></pre>
  
  <p>Here is my provider:</p>
  
  <pre><code>async authenticateUser(username:BigInteger, password:BigInteger) {
      try {
          const url = this.config.baseURL + `login?user=${username}&amp;password=${password}`;
          const headers = this.config.httpOptions;
  
          const response = await this.nativeHttp.post(url, {}, {headers:headers});
          console.log(JSON.parse(response.data)); // JSON data returned by server
          return response;
  
      } catch (error) {
          console.log(error)
      }
  }
  </code></pre>
  
  <p>Here is my config.ts:
  Headers key value has been changed for this query.</p>
  
  <pre><code>    httpOptions: any = JSON.stringify({
              'project-android-user':'project@domain.io',
              'project-android-password':'hil@androiddomain.io2323',
              'Accept':'application/json'
      })
  </code></pre>
  
  <p>This API works fine in postman however, If I remove the headers the API returns a 404 error which is obvious. The same response is what I am receiving even though I am passing my headers in this http call.</p>
  
  <p>Any suggestion will help me a lot. </p>