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 ;)) |
||
---|---|---|
.. | ||
connector | ||
controllers | ||
external | ||
middleware | ||
share | ||
activity.php | ||
cache.php | ||
exceptions.php | ||
helper.php | ||
hooks.php | ||
isharedstorage.php | ||
maintainer.php | ||
migration.php | ||
proxy.php | ||
readonlycache.php | ||
readonlywrapper.php | ||
scanner.php | ||
sharedmount.php | ||
sharedstorage.php | ||
updater.php | ||
watcher.php |