1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace think;
- require __DIR__ . '/../vendor/autoload.php';
- define('ROOT_DIR',__DIR__);
- define('WEB_DIR',dirname($_SERVER['SCRIPT_NAME']));
- header("Access-Control-Allow-Credentials:true");
- header("Access-Control-Allow-Origin:*");
- header("Access-Control-Max-Age:3600");
- header("Access-Control-Allow-Headers:*");
- header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE,OPTIONS, POIST');
- $http = (new App())->http;
- $response = $http->run();
- $response->send();
- $http->end($response);
|