tidak bisa akses nv/query.php selain dari IP jaringan lokal server PACS #2

Closed
opened 2025-02-26 15:11:04 +07:00 by mario · 0 comments
Owner

Solusi:

Pada /data/docker/nv/html/nv/config.php, ubah XOCP_SERVER dengan variabel dinamis untuk mencegah CORS:

// XOCP Server
// HTTP server name WITHOUT trailing slash 
// define("XOCP_SERVER", "http://192.168.20.11:80"); // Before
$host=$_SERVER['HTTP_HOST']; // After
define("XOCP_SERVER", "http://$host:80");
Solusi: Pada `/data/docker/nv/html/nv/config.php`, ubah `XOCP_SERVER` dengan variabel dinamis untuk mencegah CORS: ``` // XOCP Server // HTTP server name WITHOUT trailing slash // define("XOCP_SERVER", "http://192.168.20.11:80"); // Before $host=$_SERVER['HTTP_HOST']; // After define("XOCP_SERVER", "http://$host:80"); ```
mario closed this issue 2025-02-26 15:11:25 +07:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mario/config-pacs-docker#2