10 lines
655 B
Markdown
10 lines
655 B
Markdown
# Cloudflare Basic Authentication
|
|
|
|
[](https://deploy.workers.cloudflare.com/?url=https://github.com/sugoidogo/cf-basic-auth)
|
|
|
|
This worker allows you to add HTTP Basic Authentication to your Cloudflare domains.
|
|
|
|
# Setup
|
|
Deploy with the button above, or clone this repo and configure via `wrangler.toml` before deploying.
|
|
In your worker settings, you must set a route pattern (NOT a custom domain) that this worker will cover.
|
|
Use [secrets](https://developers.cloudflare.com/workers/configuration/secrets/) to add users, with the username as the key and the password as the value. |