@ampless/backend 1.0.0-beta.73 → 1.0.0-beta.74

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +11 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,9 +31,19 @@ function defineAmplessBackend(opts) {
31
31
  cfnBucket.corsConfiguration = {
32
32
  corsRules: [
33
33
  {
34
- allowedMethods: ["GET", "HEAD"],
34
+ allowedMethods: ["GET", "HEAD", "PUT", "POST", "DELETE"],
35
35
  allowedOrigins: ["*"],
36
36
  allowedHeaders: ["*"],
37
+ // multipart upload completion reads part ETags from response
38
+ // headers; expose them so the Amplify Storage SDK can assemble
39
+ // the final object. The other headers are standard AWS request
40
+ // tracing that SDKs may also read.
41
+ exposedHeaders: [
42
+ "ETag",
43
+ "x-amz-server-side-encryption",
44
+ "x-amz-request-id",
45
+ "x-amz-id-2"
46
+ ],
37
47
  maxAge: 3e3
38
48
  }
39
49
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/backend",
3
- "version": "1.0.0-beta.73",
3
+ "version": "1.0.0-beta.74",
4
4
  "description": "Amplify Gen 2 backend factories for ampless: auth, data, storage, event processors, API key renewer",
5
5
  "license": "MIT",
6
6
  "type": "module",