nfc_insecure_context.html (576B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>Web NFC Test: insecure context</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"/> 5 <link rel="help" href="https://w3c.github.io/web-nfc/"/> 6 <script src="/resources/testharness.js"></script> 7 <script src="/resources/testharnessreport.js"></script> 8 <h2>Note</h2> 9 <ol> 10 <li> 11 Run test is an insecure context, e.g. http://example.com/ 12 </li> 13 </ol> 14 <script> 15 16 "use strict"; 17 18 test(t => { 19 assert_false(isSecureContext); 20 assert_false('NDEFReader' in window); 21 }, 'NDEFReader requires a secure context'); 22 23 </script>