Преглед изворни кода

【程序目录】优化腾讯云

evoxwht пре 2 година
родитељ
комит
b58f5f50cf
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      crmeb/crmeb/services/upload/storage/Cos.php

+ 4 - 4
crmeb/crmeb/services/upload/storage/Cos.php

@@ -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'])) {