From ebb026d00390e99989d465643b33660ef9de86ac Mon Sep 17 00:00:00 2001 From: BTCforPlebs Date: Sat, 27 Sep 2025 00:32:08 -0400 Subject: [PATCH] try --- config.js | 3 +++ public/assets/js/config.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index bb886cf..c15ff76 100644 --- a/config.js +++ b/config.js @@ -2,7 +2,10 @@ module.exports = { port: process.env.PORT || 5252, // Add any other configuration variables here allowedOrigins: [ + 'http://localhost', 'http://localhost:5252', + 'https://localhost', + 'https://localhost:5252', 'https://btcforplebs.com', 'https://www.btcforplebs.com', 'http://btcforplebs.com', diff --git a/public/assets/js/config.js b/public/assets/js/config.js index b05284b..87e6e53 100644 --- a/public/assets/js/config.js +++ b/public/assets/js/config.js @@ -3,5 +3,5 @@ const config = { // Use services.btcforplebs.com in production, localhost in development apiBaseUrl: window.location.hostname === 'localhost' ? 'http://localhost:5252' - : 'https://services.btcforplebs.com' + : window.location.protocol + '//services.btcforplebs.com' }; \ No newline at end of file