Syntax - Tasty Web Development Treats

HTTPS + Tunnel Your Localhost - Cloudflare Tunnels, Ngrok, and more!

Mar 20, 2023
Discover the fascinating world of tunneling local hosts and the significance of HTTPS in web development. The hosts delve into why secure local environments are essential for testing features like WebRTC and geolocation. They share insights on using solutions like Cloudflare Tunnels and ngrok to expose local applications online. Practical tips on cookie management and aligning local setups with production standards also feature prominently. Plus, learn how to streamline GitHub repository downloads with web streams!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

GitHub's Use of Web Streams

  • Wes forgot to mention the best use case for streams in the previous episode.
  • GitHub uses web streams to allow users to download repositories quickly, even large ones, by streaming the zipped data as it's being created.
ADVICE

Replicate Production Locally

  • Use a local development setup that closely mirrors your production environment.
  • Set up local domains with SSL certificates using tools like Caddy Server for a more consistent experience.
ANECDOTE

.dev Domains and Caddy Server

  • Scott used a .dev domain with Caddy Server to resolve cookie issues in Safari.
  • This setup, combined with an updated host file, allowed him to mimic a production environment more accurately.
Get the Snipd Podcast app to discover more snips from this episode
Get the app