【程序目录】优化腾讯云

This commit is contained in:
evoxwht 2023-08-03 10:08:06 +08:00
parent 383ce0cb7f
commit b58f5f50cf

View File

@ -534,10 +534,10 @@ class Cos extends BaseUpload
$this->storageRegion = $region;
try {
$res = $this->app()->PutBucketCors($name, [
'AllowedHeaders' => ['*'],
'AllowedMethods' => ['PUT', 'GET', 'POST', 'DELETE', 'HEAD'],
'AllowedOrigins' => ['*'],
'ExposeHeaders' => ['ETag', 'Content-Length', 'x-cos-request-id'],
'AllowedHeader' => ['*'],
'AllowedMethod' => ['PUT', 'GET', 'POST', 'DELETE', 'HEAD'],
'AllowedOrigin' => ['*'],
'ExposeHeader' => ['ETag', 'Content-Length', 'x-cos-request-id'],
'MaxAgeSeconds' => 12
]);
if (isset($res['RequestId'])) {