Skip to content

JonasJasas/cloudflare-workers-basic-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Basic auth via cloudflare workers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%