Issues setting up SSL with AWS Lightsail, Strapi and Nginx

System Information
  • Strapi Version: 3.6.8
  • Operating System: Bitnami/Debain
  • Database: Postgresql
  • Node Version: 12.20.2
  • NPM Version: 8.1.4
  • Yarn Version: 1.22.10

Hi, I’ve manage to build my Strapi backend and can access it with the static IP given in my Lightsail instance. I’ve created a DNS zone in which I plan to access the backend for my API calls. I’ve routed it to HTTPS and the specific DNS name, followed the Nginx deployment guide and I’m still unable to access my requests from HTTPS however HTTP works fine.

Another issue I’ve encountered is when I use HTTP and try to get to the admin panel I’m greeted with a loading screen that just loads infinitely due to not being able to get the /admin/init request.
The error I get in the console is:

Access to fetch at ‘’ from origin ‘’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.