Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

278
Vistas
Angular 13: 'ng serve' does not proxy multiple websocket connections and results in 'Invalid frame header' errors

When I try to start my application in development mode, it is throwing me the below issue which is related to the web socket

enter image description here

I'm using Angular 13 and below mentioned package versions
"@angular-builders/custom-webpack": "^13.1.0" "@angular-devkit/architect": "^0.1303.2"

Also, I'm adding the GitHub issue discussion which is gone inactive about the same issue I'm facing

https://github.com/angular/angular-cli/issues/22260

My proxy.config.js file

const PROXY_CONFIG = [
    {
        context: ['/api',],
        target: 'https://localhost:7000',
        secure: false
    },
    {
        context: ['/ws'],
        target: 'wss://localhost:7000',
        secure: false,
        ws: true
    }
];

module.exports = PROXY_CONFIG;

Angular.json

                "serve": {
                    "builder": "@angular-builders/custom-webpack:dev-server",
                    "options": {
                        "browserTarget": "amat-solution-ui:build",
                        "proxyConfig": "src/proxy.conf.js"
                    },
                    "configurations": {
                        "production": {
                            "browserTarget": "amat-solution-ui:build:production"
                        }
                    }
                },

How can I resolve this issue?

Stackblitz Demo App

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda