v5.2.1
Fixed 2
- Prevent overlay for errors caught by React error boundaries
- Take the first network found instead of the last one to restore the same behavior as 5.0.4
Security 2
- Cross-origin requests are not allowed unless allowed by Access-Control-Allow-Origin header
- Requests with IP addresses in the Origin header are not allowed to connect to WebSocket server unless configured by allowedHosts or if different from the Host header
From webpack-dev-server
5.2.1 (2025-03-26)
Security
- cross-origin requests are not allowed unless allowed by
Access-Control-Allow-Originheader - requests with an IP addresses in the
Originheader are not allowed to connect to WebSocket server unless configured byallowedHostsor it different from theHostheader
The above changes may make the dev server not work if you relied on such behavior, but unfortunately they carry security risks, so they were considered as fixes.