mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-804] webpack proxy setup to avoid CORS problem (#1960)
This commit is contained in:
committed by
Eugenio Romano
parent
5699b45f1d
commit
b6bf53f457
@@ -29,8 +29,8 @@ declare var document: any;
|
||||
export class AppComponent {
|
||||
searchTerm: string = '';
|
||||
|
||||
ecmHost: string = 'http://' + window.location.hostname + ':8080';
|
||||
bpmHost: string = 'http://' + window.location.hostname + ':9999';
|
||||
ecmHost: string = `http://${window.location.hostname}:${window.location.port}/ecm`;
|
||||
bpmHost: string = `http://${window.location.hostname}:${window.location.port}/bpm`;
|
||||
|
||||
constructor(private authService: AlfrescoAuthenticationService,
|
||||
private router: Router,
|
||||
|
@@ -129,7 +129,29 @@ module.exports = {
|
||||
port: 3000,
|
||||
historyApiFallback: true,
|
||||
host: '0.0.0.0',
|
||||
inline: true
|
||||
inline: true,
|
||||
proxy: {
|
||||
'/ecm': {
|
||||
target: {
|
||||
host: "0.0.0.0",
|
||||
protocol: 'http:',
|
||||
port: 8080
|
||||
},
|
||||
pathRewrite: {
|
||||
'^/ecm': ''
|
||||
}
|
||||
},
|
||||
'/bpm': {
|
||||
target: {
|
||||
host: "0.0.0.0",
|
||||
protocol: 'http:',
|
||||
port: 9999
|
||||
},
|
||||
pathRewrite: {
|
||||
'^/bpm': ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
node: {
|
||||
|
Reference in New Issue
Block a user