cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco ADF CORS connectivity issue.

vikash_patel
Star Contributor
Star Contributor

Hello Team.

Our ACS 7.2 is working on one server and our ADF application is deployed on another server and I pointed the same ACS server in configurations

app.config.json .
"ecmHost": "http://xxxxxxx:8080",

proxy.conf.js
module.exports = {
"/alfresco": {
"target": "http://xxxxxxx.com:8080",
"secure": false,
"changeOrigin": true
}
};

While trying to login using ADF application it's giving CORS error and not allowing to login.

I followed this documentation link to enable cors https://docs.alfresco.com/content-services/community/config/repository/#cors-configuration

cors.enabled=true

"

Request has been terminated Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.
"


Please help here to solve the issue.


Thanks,
Vikash

2 REPLIES 2

angelborroy
Community Manager Community Manager
Community Manager

Try this approach:

https://github.com/abhinavmishra14/enable-cors-acs-demo

Hyland Developer Evangelist

douglascrp
World-Class Innovator
World-Class Innovator

The solution didn't work for me, using Alfresco 7.2.0