cancel
Showing results for 
Search instead for 
Did you mean: 

When to set CORS setting

xiaolong_Yang
Champ in-the-making
Champ in-the-making

Hi,

To activate CORS, the link: https://doc.nuxeo.com/pages/viewpage.action?pageId=14257084 provide some xml to allow Corss-domain.

Where should I put this xml file ? In what file ?

Regards,

St.

1 REPLY 1

Greg_Drayon
Star Contributor
Star Contributor

As it is a component, you can set it up into any xml extension file in your OSGI-INF folder, if you use Nuxeo IDE, or directly in an xml extension if you use Nuxeo Studio (more information). Third solution is to name you xml file with whatever_your_want-config.xml (only the -config.xml part is important), and put it in the config directory of your server:

  • $NUXEO/nxserver/config for a Tomcat distribution,
  • $NUXEO/server/default/deploy/nuxeo.ear/config for a JBoss distribution.

Also, if you use the first option, don't forget to declare the xml extension file in your MANIFEST.MF in your META-INF folder.

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.