We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72944d1 commit e7935c2Copy full SHA for e7935c2
src/validators/ApiKeyValidators.ts
@@ -19,7 +19,7 @@ export function checkValidApiKey (req: Request): Promise<boolean> {
19
if (apiKey.whitelist_domains[0] === '*') {
20
return resolve()
21
}
22
- if (apiKey.whitelist_domains.indexOf('Referer')) {
+ if (apiKey.whitelist_domains.indexOf(req.header('Referer')) !== -1) {
23
24
25
0 commit comments