Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDFViewer / Content Security Policy blocks 'blob:' and 'frame-src' #40639

Closed
vkael opened this issue Feb 14, 2023 · 1 comment · Fixed by owncloud/web#8498
Closed

PDFViewer / Content Security Policy blocks 'blob:' and 'frame-src' #40639

vkael opened this issue Feb 14, 2023 · 1 comment · Fixed by owncloud/web#8498

Comments

@vkael
Copy link

vkael commented Feb 14, 2023

Steps to reproduce

  1. Install latest OwnCloud server
  2. Configure it to use OwnCloud Web application new front-end
  3. Upload a PDF
  4. Try to preview said PDF

Expected behaviour

PDF is shown.

Actual behaviour

CSP configuration does not allow neither blob: (Chrome/Firefox), nor frame-src (Chrome only) :
image

View :
image

Server configuration

Operating system: Debian 11

Web server: NGINX

Database: MySQL

PHP version:

ownCloud version: 10.11

Updated from an older ownCloud or fresh install: Updated

Where did you install ownCloud from: OwnCloud website

Signing status (ownCloud 9.0 and above):

No errors have been found.

List of activated apps:

"preview",
"pdf-viewer",
"search",
"text-editor",
"draw-io"

Are you using external storage, if yes which one: local

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: Chrome 110.0.5481.100 and Firefox 110

Operating system: Windows 11

Logs

Browser log

Content Security Policy: The page’s settings blocked the loading of a resource at blob:https://xyz.com/bb6b39b8-1d71-4960-bc4c-16ab79bc1044 (“default-src”).
@vkael vkael changed the title PDFViewer / Content Security Policy blocks 'blob:' PDFViewer / Content Security Policy blocks 'blob:' and 'frame-src' Feb 15, 2023
@DeepDiver1975
Copy link
Member

not a core issue - thx for your contribtion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants