Skip to content

Commit

Permalink
feat(cors): add more CORS options
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Aug 29, 2023
1 parent 498ef24 commit 976dcb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/backend/src/functions/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,10 @@ export const createBucket = functions
CORSConfiguration: {
CORSRules: [
{
AllowedMethods: ["GET"],
AllowedOrigins: ["*"]
AllowedMethods: ["GET", "PUT"],
AllowedOrigins: ["*"],
ExposeHeaders: ["ETag", "Content-Length"],
AllowedHeaders: ["*"],
}
]
}
Expand Down

0 comments on commit 976dcb1

Please sign in to comment.