Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 791 Bytes

File metadata and controls

11 lines (8 loc) · 791 Bytes

basic-auth-workers

This is a Basic HTTP Authentication implementation using Cloudflare Workers.

Please refer to the Cloudflare documentation to set up the environment variables.

Variable Name Type Value Notes
AUTH_HEADER_KEY Text authorization The name of the HTTP authentication header, should always be Authorization
AUTH_HEADER_VALUE Secret your_own_secret Should be in the formate of <type> <credentials>

Find a tool to help you to generate the AUTH_HEADER_VALUE