start.php 359 B

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