@@ -15,6 +15,11 @@
namespace think;
+header('Access-Control-Allow-Credentials: true');
+header('Access-Control-Allow-Methods: GET, POST, PATCH, PUT, DELETE');
+header('Access-Control-Allow-Headers: Authorization, Content-Type, If-Match, If-Modified-Since, If-None-Match, If-Unmodified-Since, X-Requested-With');
+header('Access-Control-Allow-Origin: *');
+
require __DIR__ . '/../thinkphp/base.php';
Container::get('app')->run()->send();
@@ -14,7 +14,7 @@
// +----------------------------------------------------------------------
if (is_file($_SERVER["DOCUMENT_ROOT"] . $_SERVER["SCRIPT_NAME"])) {
-// return false;
+ return false;
} else {
require __DIR__ . "/index.php";
}