Thanks for the reply.
My configs are setup correctly for the production and development environments.
The application runs in development mode on local and production mode on deployment.
I have also enabled tried to setup CORS. This is my middleware.
module.exports = [
“strapi::errors”,
“strapi::security”,
{
name: “strapi::cors”,
config: {
headers: “Access-Control-Allow-Origin: http://localhost:1337”,
origin: [“*”],
},
},
“strapi::poweredBy”,
“strapi::logger”,
“strapi::query”,
“strapi::body”,
“strapi::session”,
“strapi::favicon”,
“strapi::public”,
];
NODE_ENV=development on local.