最近搜索
没有最近搜索

Christos Trochalakis
已加入2021年10月16日
·
最后活动2021年10月16日
关注
0
关注者
0
活动总数
2
投票
0
订阅
1
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Christos Trochalakis
Christos Trochalakis 创建了一个帖子,
Hello all,
We are developing a zendesk app that is loaded inside an iframe. ZAFClient is correctly initialized on the first request but the state (app_guuid, origin) is not persisted between full reloads of the iframe, as a result the reloaded iframe cannot initialize a ZAFClient instance.
There are a few workarounds to that, most of them a bit hackish or difficult to implement (e.g. using a SPA that holds the state).
We were thinking of another solution, what if Zendesk exposed an additional postMessage API (e.g. by responding to a 'getZAFParameters' message) that returned the app_guid & origin. It seems simple & clean, the parent Zendesk window has the full state and knows the app_guid since it created the iframe in the first place.
Would that sound like a reasonable addition?
ps: we are currently experimenting with a double iframe solution, where the wrapper iframe keeps app_guid and proxies message between Zendesk and the inner application iframe, but we don't quite like the added complexity of that solution.
已于 2021年6月01日 发布 · Christos Trochalakis
0
关注者
3
投票
1
Comment