<?php
$http_origin = $_SERVER['HTTP_ORIGIN'];
if ($http_origin == "http://keylab.cc" || $http_origin == "http://www.keylab.cc" || $http_origin == "http://www.domain3.com"|| $http_origin == "http://192.168.0.6:8083")
{
header("Access-Control-Allow-Origin: $http_origin");
}
header("Access-Control-Allow-Credentials:true");
header("Access-Control-Allow-Headers: log_user_id, Origin, X-Requested-With, Content-Type, Accept, Authorization");