Strapi v4 deployed to AWS EBS trying to load resource from localhost

I am on version 4.0.7
Even after adding the session middle ware + associated keys, the issue persists

removing strapi session would return me to square one