diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-16 22:13:52 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-03-16 22:13:52 +0300 |
commit | 16c82f5a0abb0ecacb94ca2ea3fd7fd96edc0156 (patch) | |
tree | 4a7fa2ae7732e7e0bd8889900c93cec2956737fc /js/documents.js | |
parent | 77fc4fedc1b2cde293199662b48e67e9e10134ff (diff) |
Also set proper nonce for loleaflet src
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'js/documents.js')
-rw-r--r-- | js/documents.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/documents.js b/js/documents.js index 34274ef1..c431ed8e 100644 --- a/js/documents.js +++ b/js/documents.js @@ -412,7 +412,7 @@ var documentsMain = { '<input name="access_token" value="' + access_token + '" type="hidden"/></form>'; // iframe that contains the Collabora Online Viewer - var frame = '<iframe id="loleafletframe_viewer" name= "loleafletframe_viewer" style="width:100%;height:100%;position:absolute;"/>'; + var frame = '<iframe id="loleafletframe_viewer" name="loleafletframe_viewer" nonce="' + btoa(OC.requestToken) + '" style="width:100%;height:100%;position:absolute;"/>'; $('#revViewer').append(form); $('#revViewer').append(frame); |