const express = require('express');
const cors = require('cors');
const app = express();

app.use(cors({
  origin: 'https://trusted-domain.com',
  methods: ['GET', 'POST'],
  allowedHeaders: ['Content-Type']
}));

app.listen(3000, () => {
  console.log('Server running on port 3000');
});