Skip to content

Commit de9d47f

Browse files
authored
Disallow credentials from cross-origin reports (#186)
This changes the credentials mode for reports to 'same-origin' and adds a note explaining the rationale for not using 'omit' instead. Closes: #161
1 parent f890dc1 commit de9d47f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

index.src.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,10 +616,19 @@ <h4 id="try-delivery" algorithm>
616616
: `unsafe-request` flag
617617
:: set
618618
: `credentials`
619-
:: "`include`"
619+
:: "`same-origin`"
620620
: `body`
621621
:: A [=/body=] whose [=body/source=] is |body|.
622622

623+
Note: Reports are sent with credentials set to `same-origin`. This allows
624+
reporting endpoints which are same-origin with the reporting page to get
625+
extra context about the nature of the report: for example, to understand
626+
whether a given user's account is triggering errors consistently, or if a
627+
certain sequence of actions taken on other pages is triggering a report on
628+
this page. This does not leak any new information to the reporting
629+
endpoint that it could not obtain in other ways. That is not the case for
630+
cross-origin reporting endpoints, so they do not receive credentials.
631+
623632
4. <a>Queue a task</a> to <a>fetch</a> |request|.
624633

625634
5. <a>Wait for a response</a> (|response|).

0 commit comments

Comments
 (0)