I have a website (configs.fun) hosted at Namecheap, it uses cloudflare & is HTTPS.
I have a server with digitalocean where I run my api, I added my domain to it so api.example.com/endpoint will resolve to my flask api. When I send a HTTP request from my web app (https://configs.fun/ to http://api.example.com/ I get a ‘Mixed Content’ error, api.example.com needs to be HTTPS (or my Flask Application does atleast). I have been looking to see how I can get certificates for Flask and I saw DigitalOcean offers certificates for your domains.
I made a new certificate for my domain & subdomain but I don’t know how I am going to make my Flask app run on HTTPS.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!