mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
13 lines
596 B
Diff
13 lines
596 B
Diff
diff --git a/server/php/R/r.php b/server/php/R/r.php
|
|
--- a/server/php/R/r.php
|
|
+++ b/server/php/R/r.php
|
|
@@ -18,7 +18,7 @@ $r_debug = '';
|
|
$authUser = $client = $form = array();
|
|
$_server_protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https' : 'http';
|
|
$_server_domain_url = $_server_protocol . '://' . $_SERVER['HTTP_HOST']; // http://localhost
|
|
-header('x-response-url:' . $_SERVER[REQUEST_URI]);
|
|
+header('x-response-url:' . $_SERVER['REQUEST_URI']);
|
|
header('Access-Control-Allow-Origin: *');
|
|
header('Access-Control-Allow-Methods: *');
|
|
require_once '../config.inc.php';
|