• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
  • License
    MIT License
  • Created over 2 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Helps ease the pain of newer Chrome versions forcing HTTP Strict Transport Security for localhost, then caching via dynamic domain security policies if it ever works once, forcing HTTPS on local dev servers until "localhost" is manually reset via chrome://net-internals/#hsts every single time this happens. This installable policy for macOS fixes that via adding localhost to HSTSPolicyBypassList and CertificateTransparencyEnforcementDisabledForURLs.

I Don't Care About HSTS for Localhost!

Helps ease the pain of newer Chrome versions forcing HTTP Strict Transport Security for localhost, then caching via dynamic domain security policies if it ever works once, forcing HTTPS on local dev servers until "localhost" is manually reset via chrome://net-internals/#hsts every single time this happens. This installable policy for macOS fixes that via adding localhost to HSTSPolicyBypassList and CertificateTransparencyEnforcementDisabledForURLs.

TL;DR

If you're seeing this on localhost dev servers: img/sadface.png ... and you're sick of deleting localhost from chrome://net-internals/#hsts: img/net-internals.png ...install the com.google.Chrome.mobileconfig profile from this repo, restart Chrome, and it should work.

Compatability

This is designed to work with Chrome >=78 on macOS (tested with macOS Monterey 12.3.1). Similar methods of setting this are available for Windows and Linux; see the official docs under References and Further Reading for more details on how to set those on each OS. https://appuals.com/how-to-clear-or-disable-hsts-for-chrome-firefox-and-internet-explorer/ also has some suggestions on permanent fixes for Firefox and Internet Explorer on Windows.

Installation

  1. Clone this repo
  2. In a terminal in the cloned directory, run open com.google.Chrome.mobileconfig. Alternatively, in a Finder window, double-click the file com.google.Chrome.mobileconfig
  3. You should see a notification in the upper-right that reads Review the profile in System Preferences if you want to install it
  4. Navigate to  -> System Preferences -> Profiles
  5. You should see the policy called I Don't Care About HSTS for Localhost! in the Downloaded section of the Profiles preferences pane. Click Install... and follow the prompts to authenticate and install the profile. img/policy.png
  6. Quit all Google Chrome windows. One easy way to do this is to select the Chrome menu on the top bar and select Quit Google Chrome.
  7. Verify that the policies are installed: re-open Google Chrome and navigate to chrome://policy/
  8. In the upper-right corner of the chrome://policy page, in the Filter Policies by name textbox, enter hsts and you should see the following: img/hstspolicybypasslist.png
  9. In that same Filter Policies by name textbox, enter url and you should see the following: img/certificatetransparencyenforcementdisabledforurls.png

References and Further Reading

More Repositories

1

WiFi-Abuse-Autokiller

Finds abusive WiFi users using way too much traffic on public wifi and sends them a sack of hot deauth frames
Shell
31
star
2

SoundCloud-likes-to-playlists

This examines your likes (favorites) for things created in the past month and adds them to a playlist (set) named for that month and year
Ruby
7
star
3

bitbot

Bitbot is a working usable example implementation of the Mt Gox JSON trading API in Python
Python
5
star
4

pycliweather

Simple Python for accessing the Wunderground API and getting forecast data (and more!) right from your favorite shell. Now on pypi as well! http://pypi.python.org/pypi/pycliweather . Check the 'webapp' branch out if you're looking for this as a simple Flask webapp (not finished yet but it works).
Python
5
star
5

wunder-star

Adds repos you star to Wunderlist
Python
4
star
6

todayilearned

TIL is a "Today, I learned..." tool to record things you found interesting and show them to you later
Ruby
2
star
7

til

TIL is a "Today, I learned..." tool to record things you've learned, store them in a standard format (SQLite database) and show them to you later
Ruby
2
star
8

OpsView-Tools

A collection of tools I've written to enhance the functionality of the OpsView (Nagios-based) server-monitoring solution
2
star
9

supercat

Stolen from supercat.nosredna.net . THIS IS NOT MINE.
Makefile
1
star
10

we4ther

we4ther is designed to be a minimal weather site that loads quickly and knows your location
Ruby
1
star
11

Bash-Tools

Various tools written in Bash
1
star
12

Block-Combinator

Gets all the blocklists from iblocklist.com and combines + gzips them
Shell
1
star
13

clitinyurl

Uses the v.gd API and provides an executable CLI wrapper to shorten URLs directly from your terminal and copies the short URL to your clipboard
Ruby
1
star
14

climail-ruby

IMAP Mail User Agent with a CLI-based UI
Ruby
1
star
15

clispell

Simple spell checking and definitions right in your terminal
Ruby
1
star
16

todo

Simple todo manager in Rails
Ruby
1
star
17

R1-Wrangler

R1Soft CDP Server Wrangler. Used to keep track of and manage backups across multiple R1Soft CDP servers. Designed for datacenter use and scales to thousands of servers being backed up by R1Soft.
1
star
18

rubycliweather

rubycliweather provides an easy-to-use CLI that harnesses the Wunderground XML API and delivers pretty forecasts FAST right to your terminal
Ruby
1
star
19

Mad-Science

WORK IN PROGRESS Mad Science is a testing / benchmarking framework in python targeting server configuration benchmarking. Mad Science has this basic workflow: Restart services so you start from a known status, make one configuration change, restart services to apply the change, benchmark the server, record the results. Rinse, repeat
Python
1
star
20

flask-datatables-zabbix

Quick example of how to get Flask to play nice with DataTables AJAX loading using Zabbix hosts as a server-side remote data source
Python
1
star
21

twitter-avatar-update

Updates your Twitter avatar to a random user-created avatar
Ruby
1
star