Drools:在另一个 Web 应用程序中嵌入 Workbench

Drools: Embedding Workbench in another web application

我需要将我的流口水 workbench 嵌入到另一个 Web 应用程序中。在 documentation 之后,我在我的网络应用程序的 iFrame 中添加了 workbench link。但是在获取应用程序页面时出现错误 Refused to display 'http://localhost:8080/jbpm-console/kie-wb.jsp?standalone&perspective=LibraryPerspective' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

如何将 workbench 嵌入另一个网站?

Drools workbench 在 localhsot:8080 中 运行 而我的 Web 应用程序在 localhost:9090 中。

我在搜索各种论坛后找到了问题的解决方法。修改了 docker 容器内的 wildfly 配置文件 standalone.xml

<subsystem xmlns="urn:jboss:domain:undertow:4.0">

下添加了以下行
<filter-ref name="xFrameOptions"/>

<response-header name="xFrameOptions" header-name="X-Frame-Options" header-value="ALLOW-FROM http://localhost:8090"/>

重新启动容器,现在 JBPM workbench 正在进入 iFrame