<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem enabling CORS on APS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7226#M3431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on my first ADF application.&amp;nbsp; I have created the template application OK using the yo tooling, I can log onto the Alfresco Content Services however I have trouble when I set the Process Services switch to on.&amp;nbsp; When I do this I get the following error message..."&lt;SPAN _ngcontent-c10="" class=""&gt;Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.&lt;/SPAN&gt;".&amp;nbsp; I can log into the Activiti web app OK and the web app is running at '&lt;A class="link-titled" href="http://localhost:9080/activiti-app/editor/#/processes" title="http://localhost:9080/activiti-app/editor/#/processes" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:9080/activiti-app&lt;/A&gt;' and the ADF settings are showing '&lt;A class="link-titled" href="http://127.0.0.1:9080" title="http://127.0.0.1:9080" rel="nofollow noopener noreferrer"&gt;http://127.0.0.1:9080&lt;/A&gt;'.&amp;nbsp; I am assuming that there is a CORS issue with APS.&lt;/P&gt;&lt;P&gt;I am running Activiti 6.0.0 in Tomcat 7.0.79.&amp;nbsp; I have read the CORS instructions for APS, these say modify &amp;lt;activity&amp;gt;/tomcat/lib/activiti-app.properties but in my install I dont have a properties file in this location; the properties file is in &amp;lt;activity&amp;gt;/tomcat/webapps/activiti-app/WEB-INF/classes/META-INF/activiti-app/activiti-app.properties.&lt;/P&gt;&lt;P&gt;I have added the following lines to the above file and changed the admin password to the same as the admin password in Alfresco (lines added are cors.enabled=true, security.csrf.disabled=true).&amp;nbsp; I have then restarted the Activit tomcat instance, I can now login at the Activiti app with admin/admin so I belived the changes in the file have been read, but when I login to the ADF app I still get the same error described above.&amp;nbsp; I have also created an activiti-app.properties file in &amp;lt;activiti&amp;gt;/tomcat/lib and placed the CORS lines in this file but it does not change anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really love the idea of ADF and belive we can create much better applications around Alfresco/Activiti in this way, before ADF creating custom applications took a long time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Aug 2017 17:31:22 GMT</pubDate>
    <dc:creator>nickchase</dc:creator>
    <dc:date>2017-08-02T17:31:22Z</dc:date>
    <item>
      <title>Problem enabling CORS on APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7226#M3431</link>
      <description>I am working on my first ADF application.&amp;nbsp; I have created the template application OK using the yo tooling, I can log onto the Alfresco Content Services however I have trouble when I set the Process Services switch to on.&amp;nbsp; When I do this I get the following error message..."Request has been terminat</description>
      <pubDate>Wed, 02 Aug 2017 17:31:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7226#M3431</guid>
      <dc:creator>nickchase</dc:creator>
      <dc:date>2017-08-02T17:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling CORS on APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7227#M3432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know ADF works only with Alfresco Process Services (enterprise version of activiti). If you are using Process Services, there is a document around ADF CORS strategies which you can find at&amp;nbsp;&lt;A href="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2017 04:47:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7227#M3432</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-08-03T04:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem enabling CORS on APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7228#M3433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changes the proxy settings in the webpack.common.js files to map ECM as &lt;A href="http://localhost:3000/ecm" rel="nofollow noopener noreferrer"&gt;http://localhost:3000/ecm&lt;/A&gt; to &lt;A href="http://localhost:8080" rel="nofollow noopener noreferrer"&gt;http://localhost:8080&lt;/A&gt; and map BPM as &lt;A href="http://localhost:3000/bpm" rel="nofollow noopener noreferrer"&gt;http://localhost:3000/bpm&lt;/A&gt; to &lt;A _jive_internal="true" href="https://community.alfresco.com/localhost:9080." rel="nofollow noopener noreferrer"&gt;http://localhost:9080.&lt;/A&gt; I&amp;nbsp;changed the ECM &amp;amp; BCM&amp;nbsp;information using the settings menu to &lt;A href="http://localhost:3000/ecm" rel="nofollow noopener noreferrer"&gt;http://localhost:3000/ecm&lt;/A&gt; &amp;amp; &lt;A href="http://localhost:3000/bpm" rel="nofollow noopener noreferrer"&gt;http://localhost:3000/bpm&lt;/A&gt; and I still had the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the browser&amp;nbsp;network debug I noticed that the calls from the browser were still&amp;nbsp;going direct to the original&amp;nbsp;ports (i.e. direct to 8080 &amp;amp; 9080), I updated the settings in the prod &amp;amp; dev config files, restarted and&amp;nbsp;could now log on.&amp;nbsp; I guess&amp;nbsp;changing the settings in the config menu has no affect and they are more for&amp;nbsp;information than real time editing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now created a business application in Activiti and am trying to access this from the ADF application.&amp;nbsp; When I click the ADF link I am seeing a 'there are no business applications' type of message in the ADF window so now I will try and work this one through.&amp;nbsp; There is an error message in the Activiti log but I have not been able to work out the detail yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for the support and I hope that someone else finds this useful.&amp;nbsp; I will update with information from Activiti error when I have the details&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 09:43:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-enabling-cors-on-aps/m-p/7228#M3433</guid>
      <dc:creator>nickchase</dc:creator>
      <dc:date>2017-08-04T09:43:19Z</dc:date>
    </item>
  </channel>
</rss>

