Alfresco ADF CORS connectivity issue.

cancel
Showing results for 
Search instead for 
Did you mean: 
vikash_patel
Established Member

Alfresco ADF CORS connectivity issue.

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
angelborroy
Alfresco Employee

Re: Alfresco ADF CORS connectivity issue.

Try this approach:

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

Hyland Developer Evangelist
douglascrp
Advanced II

Re: Alfresco ADF CORS connectivity issue.

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