Blocked by CORS locally

Expected behavior

Ran the lumber setup commands for v6, logged in, but am not able to see any data due to CORS. I haven’t changed anything in app.js and I would expect the allowedOrigins below to work.

let allowedOrigins = [
  /\.forestadmin\.com$/,
];

Actual behavior

in the browser console I get

Access to XMLHttpRequest at 'http://localhost:3310/forest/activePeriods/count?fields%5BactivePeriods%5D=archivableId%2CarchivableType%2CcreatedAt%2Cid%2CupdatedAt&searchExtended=0&timezone=America%2FLos_Angeles' from origin 'http://app.forestadmin.com' has been blocked by CORS policy: Request header field sentry-trace is not allowed by Access-Control-Allow-Headers in preflight response.

Context

Please provide any relevant information about your setup.

  • Package Version: 3.8.0 (lumber)
  • Express Version: ~4.16.3
  • Sequelize Version: ~5.15.1
  • Database Dialect: Postgres
  • Database Version: 10.5
  • Project Name: dang

hi @yoloswag and welcome to our community,

I’ve just answered to similar thread Localhost environment not loading and Dev Environment Not Reachable/On-Going Schema File Issue.
We are currently rollbacking the code that introduced this issue today, so everything should be back to normal soon.

Sorry for the inconvenience.

Hi @yoloswag ,

The patch has been released 9 hours ago, everything should be fine since.
Let us know if the issue is not solved on your end.