@botfabrik/engine-webclient 4.109.12-alpha.0 → 4.109.12-alpha.2

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 +8 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -75,6 +75,10 @@ export default (clientName, environment, props) => async (bot) => {
75
75
  frameAncestors: allowedOrigins === undefined
76
76
  ? ['*']
77
77
  : ["'self'", ...allowedOrigins],
78
+ // frame-src controls what this page may embed in an iframe.
79
+ // The /embed page loads the chatbot in an iframe on the same server ('self').
80
+ // When allowedOrigins are set, those must also be allowed (e.g. standalone view).
81
+ frameSrc: ["'self'", ...(allowedOrigins ?? [])],
78
82
  objectSrc: ["'none'"], // disable Flash/plugins
79
83
  baseUri: ["'self'"], // prevent <base>-tag injection
80
84
  // When SAML auth is configured, the browser POSTs a form to the external IdP.
@@ -92,6 +96,10 @@ export default (clientName, environment, props) => async (bot) => {
92
96
  frameguard: false,
93
97
  // Send origin only, without path – sufficient for analytics while avoiding leaking URLs
94
98
  referrerPolicy: { policy: 'strict-origin-when-cross-origin' },
99
+ // Disable HSTS: HTTPS enforcement is already handled globally in engine-core.
100
+ // Enabling it here would cause the browser to enforce HTTPS for the entire origin,
101
+ // which breaks local development (http://localhost:3000).
102
+ hsts: false,
95
103
  // resources served by the webclient must be loadable cross-origin (e.g. embed script)
96
104
  crossOriginResourcePolicy: { policy: 'cross-origin' },
97
105
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.109.12-alpha.0",
3
+ "version": "4.109.12-alpha.2",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,5 +53,5 @@
53
53
  "tsx": "^4.21.0",
54
54
  "typescript": "5.9.3"
55
55
  },
56
- "gitHead": "49afbc154f2bdd31c5cb2a8c9c6d605959f538bf"
56
+ "gitHead": "0706d247f9232a5a70742a082e0f3177ed182609"
57
57
  }