In an effort to move a web platform to HTTPS, I ran into a problem. Here is the setup that I am using:
- Python Flask-based http server is served by gunicorn
- Nginx directs SSL-encrypted HTTPS traffic to the http server
- The http server serves a ReactJS page
- Independent Python Flask-based API server is served by gunicorn
Now I am making PUT and GET requests from the ReactJS page into the API server. Because the ReactJS page is proxied via HTTPS, of course any request is fully encrypted. Thus, the API server receives encrypted requests.
My question is, how can I query an API server from within an HTTPS ReactJS page?