title: Cloud Functions - CORS - Cannot read property 'origin' of undefined
body: <p>I am trying to set up cors into my project but after installing the package I am getting error after I try to deploy to Firebase.</p>
  
  <p>Error</p>
  
  <pre><code>Error: Error occurred while parsing your function triggers.
  TypeError: Cannot read property 'origin' of undefined
  </code></pre>
  
  <p>My Code - index.js</p>
  
  <pre><code>const cors = require('cors')({
    origin: true
  });
  </code></pre>
  
  <p>Packages</p>
  
  <pre><code>"dependencies": {
      "firebase-admin": "~7.0.0",
      "firebase-functions": "^2.2.0",
      "express": "*",
      "cors": "*"
    },
  </code></pre>