diff --git a/api/src/routes/web/web.ts b/api/src/routes/web/web.ts index 7b685a0..6db26ed 100644 --- a/api/src/routes/web/web.ts +++ b/api/src/routes/web/web.ts @@ -14,7 +14,10 @@ webRouter.get('/', async (req, res) => { } catch (_) { response = '
Web Build is not present' } finally { - const codeToInject = `` + const { ALLOWED_DOMAIN } = process.env + const allowedDomain = ALLOWED_DOMAIN?.trim() + const domain = allowedDomain ? ` Domain=${allowedDomain};` : '' + const codeToInject = `` const injectedContent = response?.replace( '', `${codeToInject}`