-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1467848 [wpt PR 11428] - Fetch: test Cross-Origin-Resource-Policy…
…: same-site's scheme restriction, a=testonly Automatic update from web-platform-testsFetch: test Cross-Origin-Resource-Policy: same-site's scheme restriction Supplements #11171. For whatwg/fetch#733. -- wpt-commits: 7f0a106f3d5e9d3e7f70ba52aae896a3fffc2cc6 wpt-pr: 11428 UltraBlame original commit: 2088a3b878a40a0f734fa8e04ade1417b951e1d4
- Loading branch information
Showing
3 changed files
with
416 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
97 changes: 97 additions & 0 deletions
97
testing/web-platform/tests/fetch/cross-origin-resource-policy/scheme-restriction.any.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/ | ||
/ | ||
META | ||
: | ||
script | ||
= | ||
/ | ||
common | ||
/ | ||
get | ||
- | ||
host | ||
- | ||
info | ||
. | ||
sub | ||
. | ||
js | ||
promise_test | ||
( | ||
t | ||
= | ||
> | ||
{ | ||
return | ||
promise_rejects | ||
( | ||
t | ||
new | ||
TypeError | ||
( | ||
) | ||
fetch | ||
( | ||
get_host_info | ||
( | ||
) | ||
. | ||
HTTPS_REMOTE_ORIGIN | ||
+ | ||
" | ||
/ | ||
fetch | ||
/ | ||
cross | ||
- | ||
origin | ||
- | ||
resource | ||
- | ||
policy | ||
/ | ||
resources | ||
/ | ||
hello | ||
. | ||
py | ||
? | ||
corp | ||
= | ||
same | ||
- | ||
site | ||
" | ||
{ | ||
mode | ||
: | ||
" | ||
no | ||
- | ||
cors | ||
" | ||
} | ||
) | ||
) | ||
; | ||
} | ||
" | ||
Cross | ||
- | ||
Origin | ||
- | ||
Resource | ||
- | ||
Policy | ||
: | ||
same | ||
- | ||
site | ||
blocks | ||
retrieving | ||
HTTPS | ||
from | ||
HTTP | ||
" | ||
) | ||
; |
Oops, something went wrong.