Commit 7ffd5c2b by Jansa Jose

changed

parent 5d70d0f1
......@@ -13,7 +13,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
header('Content-Type: text/html; charset=utf-8');
// 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-Credentials: true');
header('Access-Control-Max-Age: 86400'); // cache for 1 day
......@@ -30,7 +30,7 @@ header('Content-Type: text/html; charset=utf-8');
exit(0);
}
*/
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