Skip to content

Commit d0c2ab4

Browse files
committed
Document cross_origin_renderer_url
1 parent 9026cc4 commit d0c2ab4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ You can configure the app by copying `config.sample.json` to
107107
valid location on this network. This is used as a hint to the user to indicate
108108
when a valid location has been entered so it's not necessary for this to be
109109
exactly correct. Optional.
110+
1. `cross_origin_renderer_url`: URL to a static HTML page hosting code to help display
111+
encrypted file attachments. This MUST be hosted on a completely separate domain to
112+
anything else since it is used to isolate the privileges of file attachments to this
113+
domain. Default: `usercontent.riot.im`. The HTML this page needs to contain is:
114+
```
115+
<html><head><script>
116+
window.onmessage=function(e){eval("("+e.data.code+")")(e)}
117+
</script></head><body></body></html>
118+
```
110119

111120
Running as a Desktop app
112121
========================

0 commit comments

Comments
 (0)