Compare commits
2 Commits
41317301bf
...
419285487a
Author | SHA1 | Date | |
---|---|---|---|
419285487a | |||
09722507c6 |
@ -132,6 +132,9 @@ const isFromWhitelistedDomain = (fqn: string): boolean => {
|
||||
if (envConfig.whitelistedDomains.includes(domain)) {
|
||||
return true;
|
||||
}
|
||||
console.log(
|
||||
`Rejecting prompt request from non-whitelisted domain: ${domain}`
|
||||
);
|
||||
return false;
|
||||
} catch (error: any) {
|
||||
console.error(`Error with domain check: ${error.message}`);
|
||||
@ -280,4 +283,7 @@ console.log(
|
||||
envConfig.fetchInterval / 1000
|
||||
} seconds.`
|
||||
);
|
||||
console.log(
|
||||
`Accepting prompts from domains: ${envConfig.whitelistedDomains.join(", ")}`
|
||||
);
|
||||
await beginFetchCycle();
|
||||
|
Reference in New Issue
Block a user