|
|
<?php
|
|
|
|
|
|
header("Access-Control-Allow-Origin: * ");
|
|
|
header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");
|
|
|
if($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
|
|
|
header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Authorization");
|
|
|
exit;
|
|
|
}
|
|
|
// +----------------------------------------------------------------------
|
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
|
// +----------------------------------------------------------------------
|
...
|
...
|
|