title: CORS policy: Response to preflight request doesn't pass access control check in heroku
body: <p>I got problem when deploy my reactjs client:</p>
  <p>Access to XMLHttpRequest at 'https://sephora-api-demo.herokuapp.com/api/admin/admin-product/product-properties' from origin 'https://sephora-admin.herokuapp.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  <p>And this is my cors config:</p>
  <pre><code>app.use(
  cors({
      credentials: true,
      origin: [
          'https://sephora-admin.herokuapp.com',
          'https://sephora-client-app.herokuapp.com',
          &quot;http://localhost:3000&quot;,
          &quot;http://localhost:3001&quot;,
      ],
  })
  );
  </code></pre>
  <p>help~</p>