Skip to content

Commit 4e68628

Browse files
committed
same domain
1 parent f7d867e commit 4e68628

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spec/index.bs

+6-3
Original file line numberDiff line numberDiff line change
@@ -1168,8 +1168,8 @@ To <dfn>fetch request</dfn> given a [=/request=] |request|, |globalObject|, and
11681168

11691169
<div algorithm>
11701170
When <dfn>computing the manifest URL</dfn> given an {{IdentityProviderConfig}} |provider|, a
1171-
[=string=] |manifestString|, and |globalObject|, perform the following steps. This returns a
1172-
<a spec=url for=/>URL</a> or failure.
1171+
[=string=] |manifestString|, a boolean |requireSameOrigin|, and |globalObject|, perform the
1172+
following steps. This returns a <a spec=url for=/>URL</a> or failure.
11731173
1. Let |configUrl| be the result of running [=parse url=] with |provider|'s
11741174
{{IdentityProviderConfig/configURL}} and |globalObject|.
11751175
1. Let |manifestUrl| be the result of running [=parse url=] given |manifestString| (the relative
@@ -1180,7 +1180,10 @@ When <dfn>computing the manifest URL</dfn> given an {{IdentityProviderConfig}} |
11801180
allowed.
11811181

11821182
1. If |manifestUrl| is failure, return failure.
1183-
1. If |manifestUrl| is not [=same origin=] with |configUrl|, return failure.
1183+
1. If |requireSameOrigin| and |manifestUrl| is not [=same origin=] with |configUrl|, return
1184+
failure.
1185+
1. If |requireSameOrigin| is false and |manifestUrl|'s <a spec=url>domain</a> is not equal to
1186+
|configUrl|'s, return failure.
11841187
1. If |manifestUrl| is not a [=potentially trustworthy URL=], return failure.
11851188
1. Return |manifestUrl|.
11861189
</div>

0 commit comments

Comments
 (0)