mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
chore: remove console.log
This commit is contained in:
@ -37,17 +37,12 @@ export default async function handlerFeatureFlagAll(req: Request) {
|
||||
|
||||
const origin = req.headers.get('origin');
|
||||
|
||||
console.log({ origin });
|
||||
|
||||
if (origin) {
|
||||
if (origin.startsWith(process.env.NEXT_PUBLIC_WEBAPP_URL ?? 'http://localhost:3000')) {
|
||||
res.headers.set('Access-Control-Allow-Origin', origin);
|
||||
}
|
||||
|
||||
console.log('marketing url', process.env.NEXT_PUBLIC_MARKETING_URL);
|
||||
|
||||
if (origin.startsWith(process.env.NEXT_PUBLIC_MARKETING_URL ?? 'http://localhost:3001')) {
|
||||
console.log('setting marketing origin');
|
||||
res.headers.set('Access-Control-Allow-Origin', origin);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user