Error: Middleware "strapi::session": App keys are required

Just so it’s a bit clearer for future searchers, as I ran into the same problem.
Create an .env file in the base directory of the project.
Add these values to it:
APP_KEYS={random-string-doesn’t-matter}
API_TOKEN_SALT={random-string-doesn’t-matter}

After this, everything works flawlessly.

1 Like