Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!