48243a2949
This is required because the PDF Viewer itself is embedded using an iframe from the same domain. The default policy is blocking this. Going on further, we have to come up with a solution in the future how to handle previews by applications, one example might be that they call their own endpoint and not the generic share page to allow applications to have full control over how to display previews. Anyways, to test this behaviour use a decent newer browser (such as Chrome 41) and share a PDF file, obviously the PDF viewer needs to be enabled as well. Without this patch publicly shared PDF files should not get previewed and an error is thrown. (if it isn't then your browser is probably not obeying our Content-Security-Policy and you might consider switching to another one ;)) |
||
---|---|---|
.. | ||
controller | ||
external | ||
js | ||
middleware | ||
activity.php | ||
api.php | ||
backend.php | ||
cache.php | ||
externalstorage.php | ||
helper.php | ||
migrationtest.php | ||
permissions.php | ||
propagation.php | ||
proxy.php | ||
server2server.php | ||
share.php | ||
sharedmount.php | ||
sharedstorage.php | ||
testcase.php | ||
updater.php | ||
watcher.php |