diff --git a/src/api/authentication.ts b/src/api/authentication.ts index bbbd32cd..48389c3b 100644 --- a/src/api/authentication.ts +++ b/src/api/authentication.ts @@ -4,7 +4,7 @@ import { getConfig } from '../config/config'; import { uint8ArrayToHex } from '../utils/utils'; const authenticateKey = (req: Request, res: Response, next: NextFunction) => { - const api_key: string = req.header('API_KEY')!; + const api_key: string = req.header('Api-Key')!; if ( api_key && uint8ArrayToHex(blake2b(api_key, undefined, 32)) ==