server/apps/files_sharing
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
..
ajax Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
api Shares should have a least read permission 2015-03-01 17:13:17 +01:00
appinfo Merge pull request #14530 from owncloud/revert-14403 2015-02-27 00:39:29 -08:00
css fix multiselect bar offset on shared page 2014-08-19 15:51:10 +02:00
img introduce new app page layout 2014-10-15 15:21:40 +02:00
js Merge pull request #13525 from owncloud/s2s-fixscanfileforbrokenstorage 2015-01-28 00:31:37 +01:00
l10n [tx-robot] updated from transifex 2015-03-07 01:54:37 -05:00
lib Allow iframes from same domain in share view 2015-03-10 10:06:15 +01:00
templates rename 'server-to-server sharing' to 'federated cloud' 2015-01-29 15:05:39 +01:00
tests Allow iframes from same domain in share view 2015-03-10 10:06:15 +01:00
application.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
list.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
public.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
publicwebdav.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00
settings-admin.php Revert "Updating license headers" 2015-02-26 11:37:37 +01:00