<?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: How to configure CORS in ACS 6.2.2? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81064#M25026</link>
    <description>&lt;P&gt;Did you try this one?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/enabling-cors.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/enabling-cors.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 07:40:38 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2020-09-22T07:40:38Z</dc:date>
    <item>
      <title>How to configure CORS in ACS 6.2.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81063#M25025</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an instance of the Alfresco Content Services 6.2.2 (Enterprise).&lt;/P&gt;&lt;P&gt;I'm trying to configure CORS like in previous ACS versions.&lt;/P&gt;&lt;P&gt;As follows in web.xml:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;filter&amp;gt;
    &amp;lt;filter-name&amp;gt;CORS&amp;lt;/filter-name&amp;gt;
    &amp;lt;filter-class&amp;gt;com.thetransactioncompany.cors.CORSFilter&amp;lt;/filter-class&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.allowGenericHttpRequests&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.allowOrigin&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;http://localhost:8081,http://myapp.example.com&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.allowSubdomains&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.supportedMethods&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;GET, HEAD, POST, PUT, DELETE, OPTIONS&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.supportedHeaders&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;origin, authorization, x-file-size, x-file-name, content-type, accept, x-file-type, range&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.exposedHeaders&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;Accept-Ranges, Content-Encoding, Content-Length, Content-Range&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
        &amp;lt;param-name&amp;gt;cors.supportsCredentials&amp;lt;/param-name&amp;gt;
        &amp;lt;param-value&amp;gt;true&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
    &amp;lt;init-param&amp;gt;
         &amp;lt;param-name&amp;gt;cors.maxAge&amp;lt;/param-name&amp;gt;
         &amp;lt;param-value&amp;gt;3600&amp;lt;/param-value&amp;gt;
    &amp;lt;/init-param&amp;gt;
&amp;lt;/filter&amp;gt;

&amp;lt;filter-mapping&amp;gt;
    &amp;lt;filter-name&amp;gt;CORS&amp;lt;/filter-name&amp;gt;
    &amp;lt;url-pattern&amp;gt;/api/*&amp;lt;/url-pattern&amp;gt;
    &amp;lt;url-pattern&amp;gt;/service/*&amp;lt;/url-pattern&amp;gt;
    &amp;lt;url-pattern&amp;gt;/s/*&amp;lt;/url-pattern&amp;gt;
    &amp;lt;url-pattern&amp;gt;/cmisbrowser/*&amp;lt;/url-pattern&amp;gt;
    &amp;lt;url-pattern&amp;gt;/definitions/*&amp;lt;/url-pattern&amp;gt;
&amp;lt;/filter-mapping&amp;gt;&lt;/PRE&gt;&lt;P&gt;In documentation (6.1)&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.1/tasks/enable-cors.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.1/tasks/enable-cors.html&lt;/A&gt; but in&amp;nbsp;&lt;A href="https://docs.alfresco.com/6.2/concepts/welcome.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/welcome.html&lt;/A&gt; I can't find section about CORS configuration.&lt;/P&gt;&lt;P&gt;When I put it into my web.xml I got an exception while start ACS:&lt;/P&gt;&lt;PRE&gt;SEVERE: Exception starting filter [CORS]
java.lang.ClassNotFoundException: com.thetransactioncompany.cors.CORSFilter
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1358)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1180)
	at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:545)
	at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:526)
	at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:150)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.&amp;lt;init&amp;gt;(ApplicationFilterConfig.java:106)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4538)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)&lt;/PRE&gt;&lt;P&gt;Is possible to configure CORS in ACS 6.2.2?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 07:08:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81063#M25025</guid>
      <dc:creator>jmal</dc:creator>
      <dc:date>2020-09-22T07:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure CORS in ACS 6.2.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81064#M25026</link>
      <description>&lt;P&gt;Did you try this one?&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/6.2/concepts/enabling-cors.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/6.2/concepts/enabling-cors.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 07:40:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81064#M25026</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-09-22T07:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure CORS in ACS 6.2.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81065#M25027</link>
      <description>&lt;P&gt;Thank you! I will try this one.&lt;/P&gt;&lt;P&gt;I didn't notice that the enabling-cors section had moved&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 07:49:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81065#M25027</guid>
      <dc:creator>jmal</dc:creator>
      <dc:date>2020-09-22T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure CORS in ACS 6.2.2?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81066#M25028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/75447"&gt;@jmal&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great that you have a solution &amp;amp; thanks for updating us.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 09:23:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-configure-cors-in-acs-6-2-2/m-p/81066#M25028</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-09-22T09:23:25Z</dc:date>
    </item>
  </channel>
</rss>

