Configuring CORS headers
Last updated
Last updated
Please be sure of your agent type and version and pick the right documentation accordingly.
This is the documentation of the forest-express-sequelize
and forest-express-mongoose
Node.js agents that will soon reach end-of-support.
forest-express-sequelize
v9 and forest-express-mongoose
v9 are replaced by @forestadmin/agent
v1.
Please check your agent type and version and read on or switch to the right documentation.
Depending on how you've setup your app, you may encounter a CORS error. It will look like this in your browser console:
In this case, you need to configure the right CORS headers to allow the domain app.forestadmin.com
to trigger an API call on your Application URL, which is a different domain name (e.g. localhost:3000 on development).