From b9fe2fbcdb8e84effe5ac08e7bbce878ef94abd0 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Mon, 15 Mar 2021 16:43:45 +0900 Subject: [PATCH 1/2] CORS: Clarify what XHR upload event-listening triggers preflight Fixes https://github.com/mdn/content/issues/3062 --- files/en-us/web/http/cors/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/http/cors/index.html b/files/en-us/web/http/cors/index.html index 142e06a8f45a463..885492fa6e6b424 100644 --- a/files/en-us/web/http/cors/index.html +++ b/files/en-us/web/http/cors/index.html @@ -85,7 +85,7 @@

Simple requests

  • text/plain
  • -
  • No event listeners are registered on any {{domxref("XMLHttpRequest.upload")}} object used in the request; these are accessed using the {{domxref("XMLHttpRequest.upload")}} property.
  • +
  • No event listeners are registered on any XMLHttpRequestUpload object used in the request; that is, given an {{domxref("XMLHttpRequest")}} instance xhr, no code has called xhr.upload.addEventListener() to add an event listener to monitor the upload.
  • No {{domxref("ReadableStream")}} object is used in the request.
  • From 75e78ae40e418dcbf2b1bbaf8d849f113be96a87 Mon Sep 17 00:00:00 2001 From: "Michael[tm] Smith" Date: Tue, 16 Mar 2021 13:52:41 +0900 Subject: [PATCH 2/2] Reword as suggested in review comments --- files/en-us/web/http/cors/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/http/cors/index.html b/files/en-us/web/http/cors/index.html index 885492fa6e6b424..4dfe159c13ad160 100644 --- a/files/en-us/web/http/cors/index.html +++ b/files/en-us/web/http/cors/index.html @@ -85,7 +85,7 @@

    Simple requests

  • text/plain
  • -
  • No event listeners are registered on any XMLHttpRequestUpload object used in the request; that is, given an {{domxref("XMLHttpRequest")}} instance xhr, no code has called xhr.upload.addEventListener() to add an event listener to monitor the upload.
  • +
  • If the request is made using an {{domxref("XMLHttpRequest")}} object, no event listeners are registered on the object returned by the {{domxref("XMLHttpRequest.upload")}} property used in the request; that is, given an {{domxref("XMLHttpRequest")}} instance xhr, no code has called xhr.upload.addEventListener() to add an event listener to monitor the upload.
  • No {{domxref("ReadableStream")}} object is used in the request.