Beautiful Open-Source Form Builder
Update embeddable.js to push refererHost instead of matched domain to ancestors array for improved embedding logic
JhumanJec6514ccb6e2
diff --git a/client/server/plugins/embeddable.js b/client/server/plugins/embeddable.jsindex 595bbc077..d2c1e4d3e 100644--- a/client/server/plugins/embeddable.js+++ b/client/server/plugins/embeddable.js@@ -40,7 +40,7 @@ export default defineNitroPlugin((nitroApp) => {const matched = normalizedAllowed.find((allowedHost) => hostMatchesAllowed(refererHost, allowedHost))if (matched) {- ancestors.push(`https://${matched}`)+ ancestors.push(`https://${refererHost}`)}// Restrict embedding to localhost + (optionally) matched allowlisted domain