nextcloud/apps/files_sharing/lib
Lukas Reschke 48243a2949 Allow iframes from same domain in share view
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 ;))
2015-03-10 10:06:15 +01:00
..
connector Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
controllers Allow iframes from same domain in share view 2015-03-10 10:06:15 +01:00
external Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
middleware Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
share Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
activity.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
cache.php Fix size propagation over shared storage boundary 2015-03-05 22:23:47 +01:00
exceptions.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
helper.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
hooks.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
isharedstorage.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
maintainer.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
migration.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
proxy.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
readonlycache.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
readonlywrapper.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
scanner.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
sharedmount.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
sharedstorage.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
updater.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
watcher.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00