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.
2 parents b030f6e + e7935c2 commit 9d3ede8Copy full SHA for 9d3ede8
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