blob: efd3cf04b40adf5a9f851d3b2720d3bcef4c15ea [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="connect-src http://foobar.test:8000; script-src http://127.0.0.1:8000 'unsafe-inline'">
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<link rel=preload href="../../resources/dummy.js" id=preload>
<script>
var t = async_test('Makes sure that connect-src allows link preload resources with no as type');
var preload = document.getElementById("preload");
preload.onerror = t.step(function(){
t.done();
});
</script>
</head>
<body>