<?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 Re: Enabling CORS  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9928#M4414</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they are on the same port. Both are running on port 8080. I haven't used any start command, I have built it with "ng build --base-href /myUrl/" and added the dist folder to the webapp folder of my tomcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jul 2018 15:36:48 GMT</pubDate>
    <dc:creator>jriedl17</dc:creator>
    <dc:date>2018-07-28T15:36:48Z</dc:date>
    <item>
      <title>Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9914#M4400</link>
      <description>Hello. I am creating an ACS ADF App and I want to use a Server which is not on my localhost. I have configured the "app.config.json" file and the "proxy.conf.json" file as described here:'https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-stra</description>
      <pubDate>Wed, 25 Jul 2018 12:12:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9914#M4400</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-25T12:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9915#M4401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you give a look here ?&lt;/P&gt;&lt;P&gt;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:37:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9915#M4401</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-25T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9916#M4402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, as mentioned in the question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 06:23:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9916#M4402</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-26T06:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9917#M4403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share the&amp;nbsp;configuration of the proxy?&lt;BR /&gt;Where the ADF app leave?&lt;BR /&gt;Which URL are you calling from the ADF ?&lt;BR /&gt;&lt;BR /&gt;In the picture I see the target URL is &lt;A href="http://alfresco.mbasoft.at:8080" rel="nofollow noopener noreferrer"&gt;http://alfresco.mbasoft.at:8080 &lt;/A&gt;and it seems to be where the Alfresco instance leaves. Is it also where the ADF leave? If not, where does it leave?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 08:33:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9917#M4403</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2018-07-26T08:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9918#M4404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;proxy.conf.json:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="proxy.conf.json" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/22058_proxyConf.PNG" /&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;The ADF leaves on my localhost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;P&gt;I do not directly call URLs. I use the APIService-Methods of ADF to call the Repository of Alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4)&amp;nbsp;&lt;/P&gt;&lt;P&gt;On&amp;nbsp;&lt;A class="" href="http://alfresco.mbasoft.at:8080" rel="nofollow noopener noreferrer" style="color: #1e88e5; background-color: #ffffff; border: 0px; text-decoration: none; font-size: 14px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://alfresco.mbasoft.at:8080&lt;/A&gt;&amp;nbsp;leaves the Alfresco instance and I want to do some requests from my ADF-App running on my localhost&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 09:33:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9918#M4404</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-26T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9919#M4405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure about the target value.&lt;BR /&gt;Can you please try with http:;//alfresco.mbasoft.at:8080/alfresco?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 10:37:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9919#M4405</guid>
      <dc:creator>fcorti</dc:creator>
      <dc:date>2018-07-26T10:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9920#M4406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried it with this URL but I get the same Error as before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:19:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9920#M4406</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-26T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9921#M4407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do I have to enable CORS if the ADF-App and the Alfresco-Instance leave on the same server?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 11:27:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9921#M4407</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-26T11:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9922#M4408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, sorry. So is your Front end and backend on&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="http://alfresco.mbasoft.at:8080" rel="nofollow noopener noreferrer" style="color: #0d47a1; background-color: #ffffff; border: 0px; text-decoration: underline; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://alfresco.mbasoft.at&lt;/A&gt;the same domain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:20:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9922#M4408</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-26T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9923#M4409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No my Frontend is on my localhost. My Backend is on&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;A class="" href="http://alfresco.mbasoft.at:8080" rel="nofollow noopener noreferrer" style="color: #1e88e5; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;http://alfresco.mbasoft.at:8080&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 13:22:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9923#M4409</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-26T13:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9924#M4410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you have in the app.config.json?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9924#M4410</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-26T22:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9925#M4411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I have both, the ADF-APP and the Alfresco-Instance, on the same server. However I still get the CORS-Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;app.config.json:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://connect.hyland.com/legacyfs/online/alfresco/22062_appConf.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 12:39:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9925#M4411</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-27T12:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9926#M4412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are they on the same port? If port numbers are different&amp;nbsp;the request is considered cross-domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A configuration that should work for sure from your localhost if correctly configured should be like that&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proxy.conf.js&amp;nbsp;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;module.exports = {&lt;BR /&gt;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;"/alfresco"&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;"target"&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://yourContentService.com" rel="nofollow noopener noreferrer" target="_blank"&gt;http://yourContentService.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"secure"&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"pathRewrite"&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;"^/alfresco/alfresco"&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;""&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"changeOrigin"&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;// workaround for REPO-2260&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;onProxyRes: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;function &lt;/SPAN&gt;(proxyRes&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;req&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;res) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;const &lt;/SPAN&gt;header = proxyRes.headers[&lt;SPAN style="color: #6a8759;"&gt;'www-authenticate'&lt;/SPAN&gt;]&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;if &lt;/SPAN&gt;(header &amp;amp;&amp;amp; header.startsWith(&lt;SPAN style="color: #6a8759;"&gt;'Basic'&lt;/SPAN&gt;)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proxyRes.headers[&lt;SPAN style="color: #6a8759;"&gt;'www-authenticate'&lt;/SPAN&gt;] = &lt;SPAN style="color: #6a8759;"&gt;'x' &lt;/SPAN&gt;+ header&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"/activiti-app"&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;"target"&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://yourprocessService.com" rel="nofollow noopener noreferrer" target="_blank"&gt;http://yourprocessService.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"secure"&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;false&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"pathRewrite"&lt;/SPAN&gt;: {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #6a8759;"&gt;"^/activiti-app/activiti-app"&lt;/SPAN&gt;: &lt;SPAN style="color: #6a8759;"&gt;""&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"changeOrigin"&lt;/SPAN&gt;: &lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;true&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832; font-weight: bold;"&gt;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;}&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the app.config.json has you posted should be fine.&lt;/P&gt;&lt;P&gt;The last doubt that I have is how you start your project. Which command do you use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;npm run start? If you use npm run start what is npm run start in your package.json?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 19:22:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9926#M4412</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-27T19:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9927#M4413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I had faced similar situation some time back : please check if this works for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the alfresco backend server -&amp;nbsp;&lt;A class="link-titled" href="http://alfresco.mbasoft.at:8080" title="https://community.alfresco.com/external-link.jspa?url=http%3A%2F%2Falfresco.mbasoft.at%3A8080" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/external-link.jspa?url=http%3A%2F%2Falfresco.mbasoft.at%3A8080&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will have to do change in the web.xml to allow a wildcard support for origins.&lt;/P&gt;&lt;DIV style="color: #222222; font-family: arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial; font-size: small;"&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;init-param&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;param-name&amp;gt;cors.allowOrigin&amp;lt;/param-name&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;param-value&amp;gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&amp;lt;/param-value&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;&lt;SPAN style="white-space: pre-wrap;"&gt; &lt;/SPAN&gt;&amp;lt;/init-param&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;And then - whitelist your fronend url at the web proxy layer - if you have .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;Also if you have load balancer , web proxy configured before the backend - you need to have the wildcard * , or your frontend url , so that it does not drop your header at any point.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;You can run curl commands on urls at each level web proxy -&amp;gt;load balancer -&amp;gt; alfresco to see where the header is dropped .&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;Since your error is:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;==========================&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;No 'Access-control-allow-origin" header is present on the requested resource(backend)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: monospace, monospace;"&gt;Thanks!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 21:53:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9927#M4413</guid>
      <dc:creator>ranjeetsi</dc:creator>
      <dc:date>2018-07-27T21:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9928#M4414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes they are on the same port. Both are running on port 8080. I haven't used any start command, I have built it with "ng build --base-href /myUrl/" and added the dist folder to the webapp folder of my tomcat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2018 15:36:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9928#M4414</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-28T15:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9929#M4415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you just create the build and after you move it in tomcat at this point&amp;nbsp;the proxy configuration is not important anymore because you don't use anymore webpack&amp;nbsp;dev server but you can take a look&amp;nbsp;at how to disable CORS in Apache :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#jive_content_id_4_Enabling_CORS_in_Apache" title="https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#jive_content_id_4_Enabling_CORS_in_Apache" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#j…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If correctly disabled CORS you should not have any error about CORS, anyway, this is not a suggested configuration for security issues but it could be a good point to understand where are your problems.&lt;/P&gt;&lt;P&gt;This is for sure not an ADF issue but is more an APACHE configuration&amp;nbsp;issues so I suggest you read more about this topic and&amp;nbsp;concentrate your time in solving CORS problems in APACHE Tomcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't understand if you never&amp;nbsp;try to run your app on your local machine before. Anyway if you would try and you created your app with the app generator I suggest you use :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;npm run start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is because this command contains inside the configuration for use&amp;nbsp;the webpack proxy :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ng serve --host 0.0.0.0 --disable-host-check --app dev --proxy-config ./demo-shell/proxy.conf.js&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but again this proxy configuration is only needed in the local development&amp;nbsp;and is not affecting in any way your deployed app in apache.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:21:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9929#M4415</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-30T09:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9930#M4416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for your answers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This issue solved my problem:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;&lt;A _jive_internal="true" href="https://community.alfresco.com/thread/234647-how-to-deploy-an-adf-application-on-tomcat-server&amp;lt;https:/community.alfresco.com/thread/234647-how-to-deploy-an-adf-application-on-tomcat-server&amp;gt;" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/thread/234647-how-to-deploy-an-adf-application-on-tomcat-server&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 09:43:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9930#M4416</guid>
      <dc:creator>jriedl17</dc:creator>
      <dc:date>2018-07-30T09:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling CORS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9931#M4417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool! no problem!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:41:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/enabling-cors/m-p/9931#M4417</guid>
      <dc:creator>eugenio_romano</dc:creator>
      <dc:date>2018-07-30T11:41:34Z</dc:date>
    </item>
  </channel>
</rss>

