title: enabling CORS Google Cloud Function (Python)
body: <p>Can use you <a href="https://pypi.org/project/Flask-Cors/" rel="nofollow noreferrer"><code>flask_cors</code></a> in Google Cloud Functions?</p>
  <pre><code>app = Flask(__name__)
  cors = CORS(app)
  </code></pre>
  <p>Locally this <code>flask_cors</code> package works but when deployed onto Cloud Functions it does not.</p>
  <p>I have tried many different ways, as GCP has suggested <a href="https://cloud.google.com/functions/docs/writing/http" rel="nofollow noreferrer">https://cloud.google.com/functions/docs/writing/http</a>
  but I am still getting that CORS error:</p>
  <blockquote>
  <p>Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  </blockquote>