"Form failure"

1,086 views
Skip to first unread message

j...@mussenbrock-w.de

unread,
Dec 17, 2015, 9:18:04 AM12/17/15
to camunda BPM users
When doing the tutorial (https://docs.camunda.org/get-started/bpmn20/forms/) I encounter the error "Form failure: Origin is not allowed by Access-Control-Allow-Origin" instead of seeing the Forms.
Can you give me hint what could be wrong?

Roman Smirnov

unread,
Dec 18, 2015, 8:57:32 AM12/18/15
to camunda BPM users, j...@mussenbrock-w.de
Hi Jan,

Have you already tried to clear the browser cache?

Cheers,
Roman

webcyberrob

unread,
Dec 23, 2015, 9:29:03 PM12/23/15
to camunda BPM users, j...@mussenbrock-w.de
Hi Roman,

I'm suddenly getting the same behaviour on a prior working process. Ive cleared the cache, but to no avail. My suspcion is its possibly a Chrome update. I shall see if I ca configure a CORS filter work around.

regards

Rob

webcyberrob

unread,
Dec 24, 2015, 1:26:09 AM12/24/15
to camunda BPM users, j...@mussenbrock-w.de
Heres a work around - the problem seems to be when Tasklist tries to integrate an embedded form, it is running into a CORS security constraint.

If you are using Tomcat in a shared engine architecture:
create a minimalist web.xml file in your projects WEB-INF.
Add the following CORS filter config such that your web.xml may look like...

<?xml version="1.0" encoding="ISO-8859-1"?>
     version="2.5">
<filter>
  <filter-name>CorsFilter</filter-name>
  <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
  <filter-name>CorsFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>

hence re-deploy your war file and the form should be accessible.

regards

Rob
Message has been deleted
Message has been deleted

j...@mussenbrock-w.de

unread,
Jan 7, 2016, 8:42:07 AM1/7/16
to camunda BPM users, j...@mussenbrock-w.de
I'm using Wildfly. Is there a solution for Wildfly too?

Roman Smirnov

unread,
Jan 8, 2016, 2:57:46 AM1/8/16
to camunda BPM users, j...@mussenbrock-w.de
Hi Jan,

Which context path is returned? Therefore please login into tasklist and execute the following request in the browser:

GET http://<host>:<port>/camunda/api/engine/engine/default/task/<task-id>/form

or in case of a start form

GET http://<host>:<port>/camunda/api/engine/engine/default/process-definition/<proces-definition-id>/startForm

Could you please provide us with the complete error message?

Have you already tried to open your browser in incognito mode?

Cheers,
Roman

Paulo Emerique

unread,
Feb 25, 2016, 11:49:56 PM2/25/16
to camunda BPM users, j...@mussenbrock-w.de


Hi, I´m having same error, everything was working but now forms are not rendering ... on firefox I get only spinning arrows, on chrome I get "Form failure: Origin is not allowed by Access-Control-Allow-Origin"

Reply from http://<host>:<port>/camunda/api/engine/engine/default/task/<task-id>/form is:


{"key":"embedded:app:workflow/remessa_recebida","contextPath":null}

Paulo Emerique

unread,
Feb 26, 2016, 1:06:46 AM2/26/16
to camunda BPM users, j...@mussenbrock-w.de


Solved after removing all deployments (cascading) ... and redeploying
Reply all
Reply to author
Forward
0 new messages