title: Unable to test locally using firebase due to CORS restriction
body: <p>My current usecase is simple, I just need to make a post request to a cloud function I have locally developed.</p>
  
  <p>The catch is, when I fire</p>
  
  <pre><code>firebase serve
  </code></pre>
  
  <p>the hosting is deployed on <strong>localhost:5000</strong></p>
  
  <p>and cloud functions are deployed on <strong>localhost:5001</strong></p>
  
  <p>These both are from different origin as port is different. Thus, when the browser sends the initial preflight request, it fails with error message </p>
  
  <pre><code>Failed to load http://localhost:5001/projectname/region/sendEnquiry: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:5000' is therefore not allowed access.
  </code></pre>
  
  <p>How can I set the headers for testing this locally?(Again here I am not a pro, I am guessing I will have same origin when I decide to deploy in production. If not, anyways I will still need the solution)</p>
  
  <p>Thanks.</p>