Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

276
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda