Expected behavior
Access to my project in local to develop the project.
I am doing the migration to the V7
Actual behavior
I have a problem with CORS origin.
Failure Logs
app.use(
cors({
origin: process.env.CORS_ORIGINS,
maxAge: 86400, // NOTICE: 1 day
credentials: true,
})
);
My error :
Access to fetch at 'http://localhost:3310/forest' from origin 'http://app.forestadmin.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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
GET http://localhost:3310/forest net::ERR_FAILED
Context
Please provide any relevant information about your setup.
- Package Version:
node 12.19 - Express Version: 4.17.1
- Sequelize Version: 5.15.1
- Database Dialect: mysql
- Forest-express-sequelize: 7.0.0