nextcloud/apps/files_sharing/tests
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
..
controller 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
js Merge pull request #13679 from owncloud/public-disablesharejsplugin 2015-01-27 09:33:38 +01:00
middleware 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
api.php Shares should have a least read permission 2015-03-01 17:13:17 +01:00
backend.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
cache.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
externalstorage.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
migrationtest.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
permissions.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
propagation.php Add unit test for size propagation across share boundaries 2015-03-09 12:56:22 +01:00
proxy.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
server2server.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
share.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
testcase.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