Http OPTIONS /forest "404 Not Found" with "forest-express-mongoose": "^8.6.5"

:warning:This is a template you must use to report issues. :warning:
You can also drag images, videos and include Preformatted text.

Feature(s) impacted

Cannot fetch /forest and thus stuck on “Waiting for your backend to run…”

Observed behavior

The middleware FAMiddleware created with forest.init is registered with app.use(FAMiddleware) but HTTP /forest renders not found error

Expected behavior

The backoffice is created and we have access to it.

Failure Logs


  • Project name: OrthonovFormBackoffice
import Mongoose from "mongoose"
import forest from "forest-express-mongoose"

const app = express()

	.then((connection) => {
				envSecret: process.env.FOREST_ENV_SECRET,
				authSecret: process.env.FOREST_AUTH_SECRET,
				objectMapping: Mongoose,
				connections: { default: connection },
			.then((FAMiddleware) => {
	.catch((err) => handleError(err))

// Register middlewares including loader
app.use("^(?!forest/?$).*", cors()) 

Hey, and welcome to our community :wave:

Could you log process.env.FOREST_ENV_SECRET just before the forest.init code, to check that you env secret is indeed the one provided on the onboarding screen?

This may be a cause of failing /forest call.

If the env-secret variable is the correct one, could you open your browser developer console and check for errors (CORS related maybe?)

Thanks in advance.