icons-member-csp-manual.sub.html (882B)
1 <!DOCTYPE html> 2 <meta http-equiv="Content-Security-Policy" content="img-src {{host}}:{{ports[https][1]}}"> 3 <title>Test that icons member is supported (CSP check)</title> 4 <link rel="help" href="https://w3c.github.io/manifest#icons-member" /> 5 <link rel="manifest" href="resources/icons-member-csp.sub.webmanifest" /> 6 <script src="resources/icons-member-manual.js"></script> 7 <h1>Testing support for icons member (CSP check)</h1> 8 <script> 9 // Force the port of the origin to be ports[https][0] (likely :8443) 10 // we treat the port ports[https][1] (likely :8444) to be another origin that we fail against 11 if (window.location.origin !== "https://{{host}}:{{ports[https][0]}}") { 12 window.location = new URL(window.location.pathname, "https://{{host}}:{{ports[https][0]}}") 13 } 14 </script> 15 <p> 16 To pass, the icon must show a white check mark on a green background. 17 </p>