redact-client 1.5.9

Receives request for private data and decrypts it to display securely in browser
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
  <head>
	<style>
      {{ Unsecure.css }}
    </style>
  </head>
  <body>
    <iframe id="data-iframe" src="" title="secure"></iframe>
    <script>
      document.getElementById("data-iframe").contentWindow.location.href = "{{ Unsecure.path }}?{{ #if Unsecure.css }}css={{ Unsecure.css }}{{ /if }}{{ #if Unsecure.edit }}&edit={{ Unsecure.edit }}{{ /if }}{{ #if Unsecure.data_type }}&data_type={{ Unsecure.data_type }}{{ /if }}{{ #if Unsecure.relay_url }}&relay_url={{ Unsecure.relay_url }}{{ /if }}{{ #if Unsecure.js_message }}&js_message={{ Unsecure.js_message }}{{ /if }}{{ #if Unsecure.js_height_msg_prefix }}&js_height_msg_prefix={{ Unsecure.js_height_msg_prefix }}{{ /if }}";
      window.addEventListener('message', functSubmit, false);
        function functSubmit(event) {
  		  window.parent.postMessage(event.data, "*");
	    }
    </script>
  </body>
</html>