You're unable to read via this Friend Link since it's expired. Learn more
Member-only story
From HTTP to HTTPS — Easily Secure Flask Web Apps With Talisman
Leveraging Python’s Talisman library to setup HTTPS protocol for enhanced web application security

After deploying your Python project (e.g., ML model, website) as a Flask web app on cloud solutions like Heroku, you may notice that it loads with an unsecured HTTP connection despite SSL/TSL certificates already configured.
Such unsecured requests pose a security concern because malicious actors can easily compromise communications between the client and server.
This article explores using the Talisman library to redirect all incoming app requests to HTTPS instead of HTTP.
Table of Contents
(1) About HTTPS
(2) What is Talisman?
(3) Basic Usage
(4) Advanced Options
About HTTPS
HTTPS (Hypertext Transfer Protocol Secure) is a secure version of the HTTP protocol as it adds an extra layer of encryption, authentication, and integrity via the SSL/TLS protocol.
HTTPS makes it possible for sensitive data like credit card numbers and login credentials to be transmitted securely over the internet. As such, HTTPS is fast becoming the standard protocol for all websites, whether or not they…