Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 331 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 331 Bytes

Most of the code has been copy-pasted from https://github.com/jshttp/basic-auth

Why

I use it to protect static html pages.

Usage

  1. Set credentials in index.js
const NAME = "super"
const PASS = "secret"
  1. Build
yarn build

(or npm run build )

  1. copy dist/main.js to your cloudflare worker and deploy