diff --git a/static/carbone.js b/static/carbone.js index 9557937..2602f81 100644 --- a/static/carbone.js +++ b/static/carbone.js @@ -1,5 +1,6 @@ // Carbone Word Template Manager - Frontend -const CARBONE_API = 'http://localhost:8771/api/carbone'; +// Use same host as the page, just different port +const CARBONE_API = window.location.protocol + '//' + window.location.hostname + ':8771/api/carbone'; // ============================================================ // NAVIGATION