Search code examples
jbpmembeddingworkbench

Embedding Workbench JBPM v6.2 In Application


I want to display some jbpm perspective in my web application, i do like this example, i'm using jbpm v6.2:

<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <h1>Test</h1>
    <p>Editor frame below:</p>
    <iframe height='800' src='http://localhost:8080/jbpm-console?standalone=true&perspective=Process Instances' width='1000'></iframe>
  </body>
</html>

I have an error : "Refused to display 'http://localhost:8080/jbpm-console/kie-wb.html?perspective=StandaloneEditorPerspective&standalone=true&header=SAMEORIGIN' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."

Please help me fix this error. Thanks for your help!


Solution

  • Take a look at your web.xml inside the war, you can configure it there: https://github.com/droolsjbpm/kie-wb-distributions/blob/6.2.0.Final/kie-wb/kie-wb-distribution-wars/src/main/assembly/wildfly8/WEB-INF/web.xml#L30

    You should specify which page can embed the workbench, in the form ALLOW-FROM uri