fix: use window.location.hostname for Carbone API URL instead of localhost
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
// Carbone Word Template Manager - Frontend
|
// 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
|
// NAVIGATION
|
||||||
|
|||||||
Reference in New Issue
Block a user