Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dommmel/cloudflare-workers-basic-auth

Basic http auth via cloudflare workers
https://github.com/dommmel/cloudflare-workers-basic-auth

Last synced: 13 days ago
JSON representation

Basic http auth via cloudflare workers

Awesome Lists containing this project

README

        

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