AnsweredAssumed Answered

Proxy Config

Question asked by nce on Oct 25, 2018

I am setting up the Alfresco controls to call the services on my Angular 6 project. This is a project without ADF. I got everything installed and adf-search calls the api except it still calls localhost:4200 for the hostname. I followed this post for hooking up the proxy config file but it continues to direct the call to localhost:4200. Not sure what I am doing wrong, here is my proxy.config.json file:

 

{
"/alfresco/*": {
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
},
"/activiti-app/*": {
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}

 

I also tried using my package.json file to use the proxy file with: "start": "ng serve --proxy-config proxy.config.json"

This is oppose to using the angular.json file: "proxyConfig": "proxy.config.json"

Outcomes