12345678910111213 |
- #!/usr/bin/env php
- <?php
- // 允许所有域名进行访问
- header('Access-Control-Allow-Origin: *');
- // 允许的HTTP方法
- header('Access-Control-Allow-Methods: GET, POST');
- // 允许的头信息
- header('Access-Control-Allow-Headers: *');
- header('Access-Control-Allow-Credentials: true');
- require_once __DIR__ . '/vendor/autoload.php';
- support\App::run();
|