diff --git a/server.js b/server.js index 3265bbe..86f1dcb 100644 --- a/server.js +++ b/server.js @@ -6,7 +6,9 @@ const app = express(); const PORT = process.env.PORT || 443; // Use CORS middleware to allow requests from all origins -app.use(cors()); +app.use(cors({ + origin: 'https://peterwalker.xyz', +})); // Store your API key securely in an environment variable const API_KEY = process.env.API_KEY || 'API_KEY not defined';