finalarena / cloudflare-workers-basic-auth

Basic http auth via cloudflare workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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. Save and copy index.js to your cloudflare worker and deploy

About

Basic http auth via cloudflare workers


Languages

Language:JavaScript 100.0%