dever 4 年之前
父節點
當前提交
93b006df65
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      boot.php

+ 5 - 1
boot.php

@@ -1,4 +1,8 @@
-<?php 
+<?php
+header('Access-Control-Allow-Origin:*');
+header('Access-Control-Allow-Methods:GET, POST, OPTIONS');
+header('Access-Control-Allow-Headers:x-requested-with,content-type');
+
 define('DEVER_PROJECT', 'dreamland');
 define('DEVER_PROJECT_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR);
 if (defined('DEVER_PACKAGE')) {