diff --git a/.changeset/rude-mice-study.md b/.changeset/rude-mice-study.md deleted file mode 100644 index 8777dc661a59..000000000000 --- a/.changeset/rude-mice-study.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -"wrangler": patch ---- - -fix: Ignore OPTIONS requests in Wrangler's oauth server - -In Chrome v123, the auth requests from the browser back to wrangler now first include a CORS OPTIONS preflight request before the expected GET request. Wrangler was able to successfully complete the login with the first (OPTIONS) request, and therefore upon the second (GET) request, errored because the token exchange had already occured and could not be repeated. - -Wrangler now stops processing the OPTIONS request before completing the token exchange and only proceeds on the expected GET request. - -If you see a `ErrorInvalidGrant` in a previous wrangler version when running `wrangler login`, please try upgrading to this version or later. diff --git a/fixtures/worker-ts/package.json b/fixtures/worker-ts/package.json index cf832f1c588d..2cd6295a7649 100644 --- a/fixtures/worker-ts/package.json +++ b/fixtures/worker-ts/package.json @@ -8,6 +8,6 @@ }, "devDependencies": { "@cloudflare/workers-types": "^4.20230419.0", - "wrangler": "2.21.0" + "wrangler": "2.21.1" } } diff --git a/package-lock.json b/package-lock.json index 3ef29aece8ff..71db370cbc1a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -406,7 +406,7 @@ "version": "0.0.0", "devDependencies": { "@cloudflare/workers-types": "^4.20230419.0", - "wrangler": "2.21.0" + "wrangler": "2.21.1" } }, "fixtures/worker-ts/node_modules/@cloudflare/workers-types": { @@ -45481,7 +45481,7 @@ "dev": true }, "packages/wrangler": { - "version": "2.21.0", + "version": "2.21.1", "license": "MIT OR Apache-2.0", "dependencies": { "@cloudflare/kv-asset-handler": "^0.2.0", @@ -93208,7 +93208,7 @@ "version": "file:fixtures/worker-ts", "requires": { "@cloudflare/workers-types": "^4.20230419.0", - "wrangler": "2.21.0" + "wrangler": "2.21.1" }, "dependencies": { "@cloudflare/workers-types": { diff --git a/packages/wrangler/CHANGELOG.md b/packages/wrangler/CHANGELOG.md index 67ca86686e19..d7c2721ad78b 100644 --- a/packages/wrangler/CHANGELOG.md +++ b/packages/wrangler/CHANGELOG.md @@ -1,5 +1,17 @@ # wrangler +## 2.21.1 + +### Patch Changes + +- [#5337](https://github.com/cloudflare/workers-sdk/pull/5337) [`35660e27`](https://github.com/cloudflare/workers-sdk/commit/35660e27d970c282377d04c6fcba8d81a4e86bb4) Thanks [@RamIdeas](https://github.com/RamIdeas)! - fix: Ignore OPTIONS requests in Wrangler's oauth server + + In Chrome v123, the auth requests from the browser back to wrangler now first include a CORS OPTIONS preflight request before the expected GET request. Wrangler was able to successfully complete the login with the first (OPTIONS) request, and therefore upon the second (GET) request, errored because the token exchange had already occured and could not be repeated. + + Wrangler now stops processing the OPTIONS request before completing the token exchange and only proceeds on the expected GET request. + + If you see a `ErrorInvalidGrant` in a previous wrangler version when running `wrangler login`, please try upgrading to this version or later. + ## 2.21.0 ### Minor Changes diff --git a/packages/wrangler/package.json b/packages/wrangler/package.json index 678857e4ca16..67c398bc707f 100644 --- a/packages/wrangler/package.json +++ b/packages/wrangler/package.json @@ -1,6 +1,6 @@ { "name": "wrangler", - "version": "2.21.0", + "version": "2.21.1", "description": "Command-line interface for all things Cloudflare Workers", "keywords": [ "wrangler",