From 8a6fbdca25115aa5a66c32cfc37d4882384b3398 Mon Sep 17 00:00:00 2001 From: Ilya Grigorik Date: Fri, 15 Jul 2016 13:36:07 -0700 Subject: [PATCH] switch to whitelist for corsMode Followup to https://github.com/w3c/beacon/pull/33. --- index.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 16c48d7..713fa71 100644 --- a/index.html +++ b/index.html @@ -447,17 +447,20 @@

Processing Model

object's byte stream (transmittedData) and MIME type (mimeType). -
  • Let corsMode be set to "cors" if object's type is is Blob and "no-cors" otherwise.
  • +
  • Let corsMode be "cors".
  • Let headerList be null.
  • -
  • -

    If mimeType is not null, append a - Content-Type header with value mimeType to - headerList. Append a Accept-Language header - with an appropriate value to headerList. Append a - Accept header with */* as the value - to headerList.

    +
  • If mimeType is not null: +
  • Set the return value to true and return the sendBeacon() call, but continue to runs the following