Better Programming

Advice for programmers.

Follow publication

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

Kenneth Leung
Better Programming
Published in
4 min readNov 24, 2021
Photo by Jon Moore on Unsplash

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…

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Kenneth Leung
Kenneth Leung

Written by Kenneth Leung

Senior Data Scientist at Boston Consulting Group | Top Tech Author | 2M+ reads on Medium | linkedin.com/in/kennethleungty | github.com/kennethleungty

Write a response