Alfresco 6.2+, 7.0+
Edit /opt/alfresco/content-services/tomcat/shared/classes/alfresco-global.properties
Code Block cors.enabled=true cors.allowSubdomains=true cors.allowed.origins=https://alfresco.sample.net,https://confluence.sample.net cors.allowed.methods=GET,HEAD,POST,PUT,DELETE,OPTIONS cors.allowed.headers=Accept,Access-Control-Request-Headers,Access-Control-Request-Method,Authorization,Content-Type,Cache-Control,X-Requested-With,X-CSRF-Token cors.exposed.headers=Access-Control-Allow-Origin,Access-Control-Allow-Credentials cors.support.credentials=true cors.preflight.maxage=10 cors.allowGenericHttpRequests=true
- Specify The URL to allow on the cross-domain to cors.allowed.origins value.
(Asterisk can NOT be used here, but Please specify the appropriate both Confluence and Alfresco domain.) Edit /opt/alfresco/content-services/tomcat/conf/server.xml
Code Block <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" relaxedPathChars="[]|" relaxedQueryChars="[]|{}^\`"/>
Add relaxedPathChars and relaxedQueryChars if they are not.
- Restart Alfresco
Alfresco 5.2 - 6.1
...