mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
【程序目录】优化腾讯云
This commit is contained in:
parent
383ce0cb7f
commit
b58f5f50cf
@ -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'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user