Skip to content

Commit

Permalink
Add nonce to loaded JS
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
  • Loading branch information
LukasReschke authored and rullzer committed Aug 2, 2017
1 parent 8e29771 commit 700ef96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/core/vendor/ace-builds/src-noconflict/ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -3769,7 +3769,7 @@ exports.get = function (url, callback) {
exports.loadScript = function(path, callback) {
var head = dom.getDocumentHead();
var s = document.createElement('script');

s.setAttribute('nonce', btoa(OC.requestToken));
s.src = path;
head.appendChild(s);

Expand Down

0 comments on commit 700ef96

Please sign in to comment.