@plone/aurora 1.0.0-alpha.20 → 1.0.0-alpha.21

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
@@ -8,6 +8,12 @@
8
8
 
9
9
  <!-- towncrier release notes start -->
10
10
 
11
+ ## 1.0.0-alpha.21 (2026-10-30)
12
+
13
+ ### Feature
14
+
15
+ - The hosts allowed as action origins can be set from the environment when building (`REACT_ROUTER_ALLOWED_ACTION_ORIGINS`, comma separated, with `*`/`**` wildcards). Behind a proxy that terminates TLS, React Router sees the request as `http` while the browser sends an `https` origin, so every action, login included, failed with a 400. @sneridagh
16
+
11
17
  ## 1.0.0-alpha.20 (2026-10-29)
12
18
 
13
19
  ### Feature
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plone/aurora",
3
3
  "description": "Plone Aurora is the next-generation frontend for Plone CMS",
4
- "version": "1.0.0-alpha.20",
4
+ "version": "1.0.0-alpha.21",
5
5
  "maintainers": [
6
6
  {
7
7
  "name": "Plone Foundation",
@@ -35,12 +35,12 @@
35
35
  "@plone/agave": "1.0.0-alpha.9",
36
36
  "@plone/blocks": "1.0.0-alpha.19",
37
37
  "@plone/client": "2.0.0-alpha.10",
38
- "@plone/cmsui": "1.0.0-alpha.13",
38
+ "@plone/cmsui": "1.0.0-alpha.14",
39
39
  "@plone/components": "5.0.0-alpha.6",
40
40
  "@plone/icons": "1.0.0-alpha.3",
41
41
  "@plone/contents": "1.0.0-alpha.4",
42
- "@plone/helpers": "2.0.0-alpha.10",
43
- "@plone/layout": "1.0.0-alpha.15",
42
+ "@plone/helpers": "2.0.0-alpha.11",
43
+ "@plone/layout": "1.0.0-alpha.16",
44
44
  "@plone/plate": "1.0.0-alpha.26",
45
45
  "@plone/publicui": "1.0.0-alpha.9",
46
46
  "@plone/quanta": "1.0.0-alpha.3",
@@ -1,5 +1,16 @@
1
1
  import type { Config } from '@react-router/dev/config';
2
2
 
3
+ // React Router aborts an action whose `Origin` header doesn't match the origin
4
+ // of the request URL. Behind a proxy that terminates TLS, `react-router-serve`
5
+ // sees the request as `http` while the browser sends an `https` origin, so every
6
+ // action (login included) fails with a 400. The hosts listed here, comma
7
+ // separated and with `*`/`**` wildcards, are accepted as action origins. The
8
+ // list is read when building, and unset it allows only same-origin actions.
9
+ const allowedActionOrigins =
10
+ process.env.REACT_ROUTER_ALLOWED_ACTION_ORIGINS?.split(',')
11
+ .map((origin) => origin.trim())
12
+ .filter(Boolean);
13
+
3
14
  export default {
4
15
  ssr: true,
5
16
  // The build directory may be named by the environment, so a deployment can build
@@ -8,4 +19,5 @@ export default {
8
19
  // `react-router build` removes its build directory before it writes. Unset, the
9
20
  // default `build` is unchanged.
10
21
  buildDirectory: process.env.REACT_ROUTER_BUILD_DIR || 'build',
22
+ ...(allowedActionOrigins?.length ? { allowedActionOrigins } : {}),
11
23
  } satisfies Config;