diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 83cc6371b..357cac77b 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -941,12 +941,12 @@ "source": { "type": "git", "url": "https://github.com/zoujingli/ThinkLibrary.git", - "reference": "dcefe85f14c712583408aebf35c3e9dcb70b1e96" + "reference": "a82943543b07edf766267b888345bfa912cb2cee" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/dcefe85f14c712583408aebf35c3e9dcb70b1e96", - "reference": "dcefe85f14c712583408aebf35c3e9dcb70b1e96", + "url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/a82943543b07edf766267b888345bfa912cb2cee", + "reference": "a82943543b07edf766267b888345bfa912cb2cee", "shasum": "", "mirrors": [ { @@ -963,7 +963,7 @@ "ext-mbstring": "*", "topthink/framework": "^6.0" }, - "time": "2020-11-02T03:28:32+00:00", + "time": "2020-11-03T09:51:30+00:00", "type": "library", "extra": { "think": { diff --git a/vendor/services.php b/vendor/services.php index 127434723..04949e5b1 100644 --- a/vendor/services.php +++ b/vendor/services.php @@ -1,5 +1,5 @@ 'think\\admin\\Library', diff --git a/vendor/zoujingli/think-library/src/Library.php b/vendor/zoujingli/think-library/src/Library.php index d57dfd38a..cf1c5435f 100644 --- a/vendor/zoujingli/think-library/src/Library.php +++ b/vendor/zoujingli/think-library/src/Library.php @@ -97,6 +97,7 @@ class Library extends Service $header['Access-Control-Allow-Origin'] = $origin; $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-Credentials'] = 'true'; $header['Access-Control-Expose-Headers'] = 'User-Form-Token,User-Token,Token'; } // 访问模式及访问权限检查 @@ -111,7 +112,7 @@ class Library extends Service } }, 'route'); } - // 动态加入应用初始化系统函数 + // 动态加载应用初始化系统函数 [$ds, $base] = [DIRECTORY_SEPARATOR, $this->app->getBasePath()]; foreach (glob("{$base}*{$ds}sys.php") as $file) includeFile($file); // 动态加载插件初始化系统函数