Problem: i have a simple site with frontend (nginx/angular), backend (strapi) and postgres. It is deployed using docker. See docker compose file below
The site works fine local and at digital ocean without authentication.
I implemented jwt authentication. After that the site works fine local BUT not at digital ocean. See header from chrome console below
Troubleshoot so far: the only difference is this line: “Sec-Fetch-Mode: cors” it is present local but not at digital ocean. I googled this but cannot find solution.
PROBLEM SOLVED AUTHORISATION WORKS - NO DOCKER RELATED PROBLEM. I HAD TO DIVE INTO TO THE SETTINGS TO SOLVE THE PROBLEM