Added Typebot integration

This commit is contained in:
Davidson Gomes
2023-08-18 11:38:50 -03:00
parent 201e6f7e7b
commit 6f99784224
2 changed files with 43 additions and 9 deletions

View File

@@ -27,7 +27,9 @@ function bootstrap() {
cors({
origin(requestOrigin, callback) {
const { ORIGIN } = configService.get<Cors>('CORS');
!requestOrigin ? (requestOrigin = '*') : undefined;
if (ORIGIN.includes('*')) {
return callback(null, true);
}
if (ORIGIN.indexOf(requestOrigin) !== -1) {
return callback(null, true);
}