Do you use a proxy configuration for your angular app?
For example:
const PROXY_CONFIG = [
{
context: ['/api-shift'],
target: "http://localhost:9098/shift-service",
changeOrigin: true,
secure: false,
// pathRewrite: {'^/api-shift': ''},
logLevel: 'debug',
},
];
module.exports = PROXY_CONFIG;
I get this same error when I work my angular app but this file solve this problem for me.