From 811434afedabb9a3901357dc3b693fed620073e5 Mon Sep 17 00:00:00 2001 From: Julian Reschke Date: Wed, 13 Nov 2024 19:35:25 +0100 Subject: [PATCH] query: add CORS consirations (fixes #2898) --- draft-ietf-httpbis-safe-method-w-body.xml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/draft-ietf-httpbis-safe-method-w-body.xml b/draft-ietf-httpbis-safe-method-w-body.xml index 5e8282c56..021b7110d 100644 --- a/draft-ietf-httpbis-safe-method-w-body.xml +++ b/draft-ietf-httpbis-safe-method-w-body.xml @@ -482,9 +482,8 @@ Dubois, Camille, camille.dubois@example.net considerations as all HTTP methods as described in . - - The QUERY method can be used as an alternative to passing request + It can be used as an alternative to passing request information in the URI (e.g., in the query section). This is preferred in some cases, as the URI is more likely to be logged or otherwise processed by intermediaries than the request content. @@ -494,6 +493,13 @@ Dubois, Camille, camille.dubois@example.net resource &SHOULD; be chosen such that it does not include any sensitive portions of the original request content. + + A QUERY request from user agents implementing CORS (Cross-Origin Resource Sharing) + will require a "preflight" request, + as QUERY does not belong to the set of CORS-safelisted methods + (see "Methods" in + ). +
@@ -580,6 +586,14 @@ Dubois, Camille, camille.dubois@example.net + + + + FETCH + WHATWG + + +
@@ -624,6 +638,7 @@ Dubois, Camille, camille.dubois@example.net
  • Updated language and examples about redirects and method rewriting ()
  • Add QUERY example to introduction ()
  • Update "Sensitive information in QUERY URLs" ()
  • +
  • Add CORS considerations ()
  • Field registration for "Accept-Query" ()