@reventlessdev/reventless-aws 3.0.0-alpha.247 → 3.0.0-alpha.248

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,13 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 3.0.0-alpha.248 (2026-07-30)
7
+
8
+ ### Bug Fixes
9
+
10
+ * **aws:** name the presign CORS headers so authorized uploads pass preflight ([1034a4a](https://github.com/ReventlessDev/reventless-core/commit/1034a4ab82a5c3017daf5aaec0b789eb3dc2c0e1))
11
+
12
+
6
13
  # 3.0.0-alpha.247 (2026-07-30)
7
14
 
8
15
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-aws",
3
- "version": "3.0.0-alpha.247",
3
+ "version": "3.0.0-alpha.248",
4
4
  "description": "AWS adapters for Reventless",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
@@ -12,16 +12,16 @@
12
12
  "sury": "11.0.0-alpha.4",
13
13
  "uuid": "^13.0.0",
14
14
  "@reventlessdev/rescript-aws-sdk": "2.2.0-alpha.25",
15
- "@reventlessdev/rescript-effect": "0.1.0-alpha.31",
16
- "@reventlessdev/rescript-pulumi-aws": "2.4.0-alpha.61",
17
15
  "@reventlessdev/rescript-jest": "1.0.0-alpha.9",
16
+ "@reventlessdev/rescript-effect": "0.1.0-alpha.31",
18
17
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.17",
18
+ "@reventlessdev/rescript-pulumi-aws": "2.4.0-alpha.61",
19
19
  "@reventlessdev/rescript-uuid": "1.1.0-alpha.17",
20
+ "@reventlessdev/reventless-core": "3.0.0-alpha.195",
21
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.113",
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.88",
20
23
  "@reventlessdev/reventless-interop": "3.0.0-alpha.29",
21
- "@reventlessdev/reventless-postgres": "3.0.0-alpha.58",
22
- "@reventlessdev/reventless-infra": "3.0.0-alpha.112",
23
- "@reventlessdev/reventless-core": "3.0.0-alpha.194",
24
- "@reventlessdev/reventless-spec": "3.0.0-alpha.87"
24
+ "@reventlessdev/reventless-postgres": "3.0.0-alpha.59"
25
25
  },
26
26
  "devDependencies": {
27
27
  "rescript": "12.3.0",
@@ -171,7 +171,15 @@ let make = (
171
171
  {
172
172
  allowMethods: ["POST"]->Array.map(Pulumi.Input.make)->Pulumi.Input.make,
173
173
  allowOrigins: corsOrigins->Array.map(Pulumi.Input.make)->Pulumi.Input.make,
174
- allowHeaders: ["*"]->Array.map(Pulumi.Input.make)->Pulumi.Input.make,
174
+ // `content-type` and `authorization` named explicitly rather than `*`:
175
+ // `Access-Control-Allow-Headers: *` is a wildcard that, per the Fetch
176
+ // spec, does NOT cover `Authorization`. The presign POST carries a
177
+ // bearer token, so a wildcard fails its preflight and the browser
178
+ // rejects the request before it is sent — a silent break for every
179
+ // authenticated upload.
180
+ allowHeaders: ["content-type", "authorization"]
181
+ ->Array.map(Pulumi.Input.make)
182
+ ->Pulumi.Input.make,
175
183
  }: FunctionUrl.cors
176
184
  )->Pulumi.Input.make,
177
185
  },
@@ -89,7 +89,10 @@ function make(bucketName, corsOriginsOpt, servedPrefixOpt, nameOpt, opts) {
89
89
  authorizationType: "NONE",
90
90
  functionName: lambda.name,
91
91
  cors: {
92
- allowHeaders: ["*"].map(prim => prim),
92
+ allowHeaders: [
93
+ "content-type",
94
+ "authorization"
95
+ ].map(prim => prim),
93
96
  allowMethods: ["POST"].map(prim => prim),
94
97
  allowOrigins: corsOrigins.map(prim => prim)
95
98
  }