Commit 5d70d0f1 by Jansa Jose

comment

parent 3756b43b
...@@ -13,7 +13,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ...@@ -13,7 +13,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
header('Content-Type: text/html; charset=utf-8'); header('Content-Type: text/html; charset=utf-8');
// Allow from any origin // Allow from any origin
if (isset($_SERVER['HTTP_ORIGIN'])) { /* if (isset($_SERVER['HTTP_ORIGIN'])) {
//header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}"); //header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header('Access-Control-Allow-Credentials: true'); header('Access-Control-Allow-Credentials: true');
header('Access-Control-Max-Age: 86400'); // cache for 1 day header('Access-Control-Max-Age: 86400'); // cache for 1 day
...@@ -30,7 +30,7 @@ header('Content-Type: text/html; charset=utf-8'); ...@@ -30,7 +30,7 @@ header('Content-Type: text/html; charset=utf-8');
exit(0); exit(0);
} }
*/
class Webservices extends REST_Controller{ class Webservices extends REST_Controller{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment