Cors issue when upgrading to v8

Hi there

Expected behavior

No CORS issue

Failure Logs

header disallowed by preflight response on CRUD operations

Context

Here are my CORS config on NestJs :

app.enableCors({
    origin: true,
    credentials: true,
    preflightContinue: false,
    optionsSuccessStatus: 204,
  });

As you can see I don’t have any restrictions on headers so I don’t know why I have this error, surely concerning the Forest-Context-Url header ?

Thanks :pray:

  • Package Version: 8.2.8
  • Express Version: 4.17.1
  • Sequelize Version: 5.22.3
  • Database Dialect: postgresql
  • Database Version:
  • Project Name: Swan Back-Office

Hello @Quentin_Giraud,

Can you give us more details about your problem?
Like when do you get this error? when connecting to Forest admin? when connecting to a project? or just after doing a specific task?

Kind regards,
Mia

Thanks for your answer,

I get this error when trying to display each collection

If it can help :

Sorry, after verification, we had some restrictions on headers on infrastructure side

Thanks for your help

1 Like