79120832

Date: 2024-10-24 07:37:56
Score: 1
Natty:
Report link

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.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Yunus Emre Alpu