3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
8 <title>NaCl Cross-origin Test</title>
11 <h2>NaCl Cross-origin Test</h2>
13 <script type="text/javascript" src="../load_util.js"></script>
17 document.cookie = "foo";
18 var embed = load_util.embed("cors.nmf?expected_headers=Cookie:foo");
19 // This same-origin manifest request will succeed only if the server detects
20 // that a cookie is sent. The .nexe is junk data, however, so the load
22 load_util.expectLoadFailure(embed, "Bad ELF header magic number");
23 document.body.appendChild(embed);