title: Firebase Functions "httpsCallable" localhost test CORS error
body: <p>server code</p>
  
  <pre class="lang-js prettyprint-override"><code>const functions = require('firebase-functions');
  const admin = require('firebase-admin');
  admin.initializeApp();
  exports.hello = functions.https.onCall((data, context) =&gt; {
    console.log(data.text);
    return 123;
  });
  </code></pre>
  
  <p>client code</p>
  
  <pre class="lang-js prettyprint-override"><code>const myFunc = firebase.functions().httpsCallable('hello');
  myFunc({text: 'world'}).then((rslt)=&gt;{
    console.log('rslt:', rslt);
  });
  </code></pre>
  
  <p>But it is not work.
  I got error message at client browser console.</p>
  
  <blockquote>
    <p>Access to fetch at 'https:// ==skip== /hello' from origin
    '<a href="http://localhost:5000" rel="nofollow noreferrer">http://localhost:5000</a>' has been blocked by CORS policy: Response to
    preflight request doesn't pass access control check: Redirect is not
    allowed for a preflight request.</p>
  </blockquote>
  
  <p>How can I solve this problem?
  I did not find a solution in the google guide documentation.</p>
  
  <p><strong>I see comments and add content.</strong></p>
  
  <p>The query does not arrive at the server.</p>
  
  <p>If I try after functions deploy it works fine.</p>
  
  <p>But it doesn't show up on the local console, but on the firebase console.</p>
  
  <p>How can I make a local server call?</p>
  
  <p>It's crazy to deploy every time you test a function.</p>