const project = new ProjectModel({
autoLoad: true,
transport: {
load: {
method: 'GET',
disableCaching: false,
url: 'https://localhost:8028/ganttServer/load.php',
paramName: 'q'
},
sync: {
url: 'https://localhost:8028/ganttServer/sync.php'
}
}
});
Error: core.js:1673 ERROR Error: Uncaught (in promise): TypeError: Failed to fetch
TypeError: Failed to fetch
at resolvePromise (zone.js:831)
at resolvePromise (zone.js:788)
at zone.js:892
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
at Object.onInvokeTask (core.js:3811)
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
at drainMicroTaskQueue (zone.js:601)
But if same server url i put in browser it retrieves the data
Url =>https://localhost:8028/ganttServer/load.php?q=%7B%22type%22%3A%22load%22%2C%22requestId%22%3A%2215583370074430%22%2C%22stores%22%3A%5B%22calendars%22%2C%22tasks%22%2C%22dependencies%22%2C%22resources%22%2C%22assignments%22%5D%7D
Can you let me know where i am going wrong.