Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Impressum file_websocket_explicit.html  Sprache: unbekannt

 
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Bug 1345615: Allow websocket schemes when using 'self' in CSP</title>
  <meta http-equiv="Content-Security-Policy" content="connect-src ws:">
</head>
<body>
  <script type="application/javascript">
    /* load socket using ws */
    var wsSocket = new WebSocket("ws://example.com/tests/dom/security/test/csp/file_websocket_self");
    wsSocket.onopen = function(e) {
      window.parent.postMessage({result: "explicit-ws-loaded"}, "*");
      wsSocket.close();
    };
    wsSocket.onerror = function(e) {
      window.parent.postMessage({result: "explicit-ws-blocked"}, "*");
    };

    /* load socket using wss */
    var wssSocket = new WebSocket("wss://example.com/tests/dom/security/test/csp/file_websocket_self");
    wssSocket.onopen = function(e) {
      window.parent.postMessage({result: "explicit-wss-loaded"}, "*");
      wssSocket.close();
    };
    wssSocket.onerror = function(e) {
      window.parent.postMessage({result: "explicit-wss-blocked"}, "*");
    };
  </script>
</body>
</html>

Messung
CHZG
8010010093

[Seitenstruktur0.42Druckenetwas mehr zur Ethik2026-11-24]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,189,091
#Domains=945,596