When using the following code:
const cors = require(\'cors\') const corsOptions = { origin: \'http://localhost:3000\'} app.get(`/api/test`, cors(corsOptions