Skip to content

Commit 51a9c35

Browse files
authored
Merge pull request #16 from serverless-tencent/fix_cos_cors
Fix cos cors
2 parents 381facf + 808d3a9 commit 51a9c35

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

package-lock.json

Whitespace-only changes.

src/baas/cos/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,10 @@ class Cos {
403403

404404
await this.setWebsite(inputs)
405405

406-
await this.setCors(inputs)
406+
// 对cors进行额外处理
407+
if (inputs.cors) {
408+
await this.setCors(inputs)
409+
}
407410

408411
// Build environment variables
409412
const envPath = inputs.code.envPath || inputs.code.root

0 commit comments

Comments
 (0)