title: Not able to connect by frontend to backend on heroku after successful deployment
body: <p>I have deployed my mern stack app on heroku. The problem is i am not able to make any request to my backend .
  I am connecting my frontend to my backend like this...</p>
  
  <blockquote>
    <p><code>API=http://localhost:5000/api</code></p>
  </blockquote>
  
  <pre><code> import { API } from "../../backend";
  import { signin } from "../../auth/helper";
  export const getAllProducts = () =&gt; {
    return fetch(`**${API}/allProducts**`, { method: "GET" })
      .then((response) =&gt; {
        return response.json();
      })
      .catch((err) =&gt; {
        console.log(err);
      });
  };
  </code></pre>
  
  <p>I think i am caliing api on my local host thatswhy i am not getting connected to backend.
  What should i do here?</p>
  
  <p>If you want anything else you can tell me .</p>