How to send fetch request from HTTPS to a HTTP server : Mixed Content error

Solution
events {}
http {
  server {
    listen 443;
    location /flask_api {
      proxy_pass http://127.0.0.1:5000/;
    }