@botfabrik/engine-webclient 4.109.12-alpha.1 → 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 +4 -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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.109.12-alpha.1",
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": "3c8a20838f7909226b7178b3a8c4be1ea9528d4e"
56
+ "gitHead": "0706d247f9232a5a70742a082e0f3177ed182609"
57
57
  }