diff --git a/config.js b/config.js index 4c15716..9df82b7 100644 --- a/config.js +++ b/config.js @@ -2,13 +2,9 @@ module.exports = { port: process.env.PORT || 5252, // Add any other configuration variables here allowedOrigins: [ - 'https://localhost:5252', - 'https://localhost:5252', - 'https://localhost:9000', - 'http://localhost:9000', - 'https://btcforplebs.com', - 'http://btcforplebs.com', 'https://services.btcforplebs.com', - 'http://services.btcforplebs.com' + 'http://services.btcforplebs.com', + 'https://btcforplebs.com', + 'http://btcforplebs.com' ] }; \ No newline at end of file diff --git a/package.json b/package.json index 152ac78..b9451fb 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "homepage": "https://github.com/btcforplebs/BTCforPlebs.com#readme", "dependencies": { "config": "^4.1.1", + "cors": "^2.8.5", "express": "^5.1.0", "node-fetch": "^2.7.0" }, diff --git a/server.js b/server.js index 28bd4f1..2c98f24 100644 --- a/server.js +++ b/server.js @@ -56,5 +56,5 @@ app.use( // Start the server app.listen(PORT, () => { - console.log(`🚀 Server running at http://0.0.0.0:${PORT}`); + console.log(`🚀 Server running at http://127.0.0.1:${PORT}`); });