CORS was working but after setting my Nginx to use HTTPS I am getting CORS error This is my Nginx config: