Search⌘ K
AI Features

Requiring HTTPS

Explore how to require HTTPS in Azure Functions to ensure secure data transmission using SSL/TLS encryption. Understand HTTP Strict Transport Security (HSTS) and how to enforce it in your function apps. Learn to configure HTTPS for OpenAPI endpoints and apply security settings through host.json and local.settings.json for reliable and secure serverless applications.

HTTPS basics

HTTPS is a secure version of Hypertext Transfer Protocol (HTTP). When HTTPS is enabled, the information exchanged between the client and the server is encrypted. Only the client and the server can read it because only these participants have access to the encryption and decryption keys.

The keys are enabled by a special certificate that is signed by a recognized certification authority and is granted to a specific domain. The protocol used by the certificate is Secure Socket Layer (SSL), and its updated version is known as Transport Layer Security (TLS).

HTTPS in Azure Functions

In Azure Functions, HTTPS is enabled by default, therefore, we don’t have to worry about it when we deploy our function in Azure. When we run the function app in a development environment, we can apply a self-signed development certificate to include HTTPS in ...