<?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: Do I need a webscript to call external rest server (CORS)? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26810#M11558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that external rest service ,you need to enable CORS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 Apr 2019 04:32:44 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2019-04-07T04:32:44Z</dc:date>
    <item>
      <title>Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26807#M11555</link>
      <description>I try to access another Rest service outside from Alfresco via ADF. Everytime I try to execute the call. I get the following error:Access to XMLHttpRequest at 'https:/host/endpoint' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access</description>
      <pubDate>Thu, 04 Apr 2019 11:43:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26807#M11555</guid>
      <dc:creator>kaffi</dc:creator>
      <dc:date>2019-04-04T11:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26808#M11556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have made a change on proxy.conf.json then make sure that you are not touching app.config.json file.&lt;/P&gt;&lt;P&gt;OR&amp;nbsp; else enable CORS in alfresco.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please follow the link for ref&amp;nbsp;&lt;A _jive_internal="true" 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" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/application-development-framework/blog/2017/06/20/adf-cors-solving-strategies#jive_content_id_4_Enabling_CORS_in_Apache&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2019 17:37:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26808#M11556</guid>
      <dc:creator>yogeshpj</dc:creator>
      <dc:date>2019-04-04T17:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26809#M11557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer, but my question was more about the external rest service I want to call which is not running in Alfresco. Is it possible to access this external rest service directly, because I always get the CORS error, or do I need to access it over a webscript?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 06:19:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26809#M11557</guid>
      <dc:creator>kaffi</dc:creator>
      <dc:date>2019-04-05T06:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26810#M11558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that external rest service ,you need to enable CORS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Apr 2019 04:32:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26810#M11558</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2019-04-07T04:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26811#M11559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are running ADF application on nginx then you can use proxy and then allow CORS on your system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 05:30:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26811#M11559</guid>
      <dc:creator>mdtabrezmca</dc:creator>
      <dc:date>2019-04-08T05:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Do I need a webscript to call external rest server (CORS)?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26812#M11560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This actually isn't an ADF specific question. It doesn't depend on ADF if you need CORS to access an external REST service or not.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Do you need to configure CORS? It depends.&lt;BR /&gt;Does the REST service run on the same domain &amp;amp; port or on another domain or port?&lt;/P&gt;&lt;P&gt;In the first case you don't need it, in the second case you do.&lt;BR /&gt;Also read this:&amp;nbsp;&lt;A href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS" rel="nofollow noopener noreferrer"&gt;https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is an external resource (like in not a company resource), why isn't CORS already&amp;nbsp;enabled on the resource? CORS needs to be configured on the external service, not on in ADF/Angular.&amp;nbsp;Adding a CORS header client side won't help you.&lt;BR /&gt;You always could proxy that resource (that's basically what proxy.conf.js does), but if CORS isn't present, are you allowed to consume that resource in that way?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 12:53:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/do-i-need-a-webscript-to-call-external-rest-server-cors/m-p/26812#M11560</guid>
      <dc:creator>d_m</dc:creator>
      <dc:date>2019-06-28T12:53:04Z</dc:date>
    </item>
  </channel>
</rss>

