Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /connection-allowlist/tentative/link_header_preload_allow.sub.window.html - WPT Dashboard Interop Dashboard
// META: script=/common/utils.js
// META: script=resources/utils.js
//
// The test assumes the policy `Connection-Allowlist: (response-origin)` has
// been set in the response. The response also contains a link header that
// triggers a preload to the same-origin KV server at
promise_test(async () => {
const result =
await nextValueFromServer('6cd381d3-85b5-40ce-8c63-1ffb06154b8b');
assert_equals(result, 'hello');
}, 'Link header preload to an allow-listed url succeeds.');