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

Default object-src prevents loading pdf on safari #3945

Closed
tovoro opened this issue Mar 26, 2020 · 0 comments
Closed

Default object-src prevents loading pdf on safari #3945

tovoro opened this issue Mar 26, 2020 · 0 comments
Assignees
Labels

Comments

@tovoro
Copy link

tovoro commented Mar 26, 2020

Uploading a PDF to HumHub and open it with a left click on the download button will produce a "blocked plugin" error in latest Safari on latest OS X. Right click and --> save linked file works.

Javascript console in Safari says:
Refused to load https://hub.xxxx&download=0 because it does not appear in the object-src directive of the Content Security Policy.

  • Same functionality works fine with Chrome and Firefox

  • Other PDF's from other Websites are opened fine by Safari

  • Problem occurs on different HumHub installations (also on community.humhub.com!)

https://community.humhub.com/content/perma?id=212221

Q A
HumHub version 1.4.4
PHP version 7.1.33
Operating system Mac OSX Catalina 10.15.4
@buddh4 buddh4 changed the title Refused to load PDF - Safari Default object-src prevents loading pdf on safari Mar 26, 2020
@buddh4 buddh4 self-assigned this Mar 26, 2020
@buddh4 buddh4 closed this as completed in 731e105 Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants