test_no_mcb_for_loopback.html (1407B)
1 <!-- See browser_no_mcb_for_localhost.js --> 2 <!DOCTYPE HTML> 3 <html> 4 <head> 5 <meta charset="utf8"> 6 <title>Bug 903966, Bug 1402530</title> 7 </head> 8 9 <style> 10 @font-face { 11 font-family: "Font-IPv4"; 12 src: url("http://127.0.0.1:8/test.ttf"); 13 } 14 15 @font-face { 16 font-family: "Font-IPv6"; 17 src: url("http://[::1]:8/test.ttf"); 18 } 19 20 #ip-v4 { 21 font-family: "Font-IPv4" 22 } 23 24 #ip-v6 { 25 font-family: "Font-IPv6" 26 } 27 </style> 28 29 <body> 30 <div id="ip-v4">test</div> 31 <div id="ip-v6">test</div> 32 33 <img src="http://127.0.0.1:8/test.png"> 34 <img src="http://[::1]:8/test.png"> 35 <img src="http://localhost:8/test.png"> 36 37 <iframe src="http://127.0.0.1:8/test.html"></iframe> 38 <iframe src="http://[::1]:8/test.html"></iframe> 39 <iframe src="http://localhost:8/test.html"></iframe> 40 </body> 41 42 <script src="http://127.0.0.1:8/test.js"></script> 43 <script src="http://[::1]:8/test.js"></script> 44 <script src="http://localhost:8/test.js"></script> 45 46 <link href="http://127.0.0.1:8/test.css" rel="stylesheet"></link> 47 <link href="http://[::1]:8/test.css" rel="stylesheet"></link> 48 <link href="http://localhost:8/test.css" rel="stylesheet"></link> 49 50 <script> 51 fetch("http://127.0.0.1:8"); 52 fetch("http://localhost:8"); 53 // eslint-disable-next-line @microsoft/sdl/no-insecure-url 54 fetch("http://[::1]:8"); 55 </script> 56 </html>