dever 4 years ago
parent
commit
93b006df65
1 changed files with 5 additions and 1 deletions
  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')) {