working full end-to-end with encryption

This commit is contained in:
2025-12-22 13:56:59 -06:00
parent 4ee5f17566
commit 82832117a3
3 changed files with 20 additions and 0 deletions

View File

@@ -3,8 +3,18 @@ import type { Browser, BrowserContext, Page } from 'playwright';
import { existsSync, mkdirSync, writeFileSync } from 'fs';
import pino from 'pino';
import express from 'express';
import cors from 'cors'; // ADD THIS
const app = express();
app.use(cors({
origin: ['http://localhost:5173', 'http://localhost:4000'],
credentials: true,
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
allowedHeaders: ['Content-Type', 'Authorization']
}));
app.use(express.json());
const logger = pino({