Skip to content

Commit 8d3a372

Browse files
chore(release): new release
1 parent d78f183 commit 8d3a372

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

‎.changeset/independent-origin-authorization.md‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 6.2.0
4+
5+
### Minor Changes
6+
7+
- Add `allowedOrigins` to say which pages may use the server — its HTTP endpoints, hot module replacement and proxied WebSockets — independently of `allowedHosts`, which goes back to checking `Host`. Nothing changes until it is set: the default, `"auto"`, keeps the rules derived from `allowedHosts`. A list allows the listed origins plus the page's own hostname (any port, loopback names counted as one, as before), answering them with CORS headers and allowing a plain `<script>` they load by its `Referer`; `"all"` allows every origin without turning off the `Host` check. Under `"auto"`, `allowedHosts: "all"` and an `Access-Control-Allow-Origin: *` entry in `headers` still open the server to every origin, and are deprecated for doing so. (by [@bjohansebas](https://github.com/bjohansebas) in [#5770](https://github.com/webpack/webpack-dev-server/pull/5770))
8+
9+
Once `allowedOrigins` is set, the injected hot client is also handed a per-run token, and a client carrying it may connect from an origin the server does not otherwise know, such as a proxy's; the `Host` check still applies. webpack-dev-middleware is now required at `^8.5.0`, the first release that hands over a token without requiring it.
10+
11+
Add `static.deny`: `true` refuses `.env`, `.env.*`, keys and certificates, `.npmrc`, `.yarnrc.yml` and `.git` in a static directory with `403` and leaves them out of directory listings, or give patterns of your own. Off by default for now.
12+
313
## 6.1.0
414

515
### Minor Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webpack-dev-server",
3-
"version": "6.1.0",
3+
"version": "6.2.0",
44
"description": "Serves a webpack app. Updates the browser on changes.",
55
"homepage": "https://github.com/webpack/webpack-dev-server#readme",
66
"bugs": "https://github.com/webpack/webpack-dev-server/issues",

0 commit comments

Comments
 (0)