On one project we moved from Flex based frontend to Angular HTML5 based.
Problem we faced was CORS error:
and after some tweaking we got:
As LiveCycle ES3 that was used in this case did not support for CORS headers we created simple JBOSS Valve:
Compiled jar is jar here available for download.
This Eclipse project with just one java files was sufficient. Also there we two dependency jars needed: jbossweb.jar and servlet-api.jar . We took them from LiveCycle installation.
After we built the jar file with class above, we installed it:
1. put jar into /jboss/server/lc_turnkey/deploy/jbossweb.sar folder
2. add following line into server.xml file in the same folder:
and restart your server. Worked like a charm!
Probably in AEM this will be no longer needed.