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

Content Security blocks galleryplus on latest git master of owncloud #89

Closed
Spacefish opened this issue Mar 13, 2015 · 4 comments
Closed
Labels

Comments

@Spacefish
Copy link
Contributor

I get a lot of:
Refused to load the image 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAACXBIW…7oCvj8PnL5HKkpB7evevDQABS/3++aCgJUnYDz4GG18f8BE69QFZcoodwAAAAASUVORK5CYII=' because it violates the following Content Security Policy directive: "img-src 'self'".

In Chrome, i get similar errors in firefox aswell!

with the latest owncloud master branch... I think they somehow set these Content Security Policys to counter XSS attacks.. Maybe they need to change them... As they even seem to block data urls..

@oparoz
Copy link
Contributor

oparoz commented Mar 13, 2015

This is due to a change which has been introduced to tighten the policy in core. Apps will be able to define their own policies once they migrate to a newer version of the AppFramework. owncloud/core#13989

The master branch here is still being used to stabilise the 8.0.x releases.

@Spacefish
Copy link
Contributor Author

thanks for the hint, i will try to add this for 8.1 on a different branch tommorow (if it isn´t already)

@libasys
Copy link

libasys commented Apr 20, 2015

@oparoz here is an working example to fix this problem:
owncloud/core#13989

@oparoz
Copy link
Contributor

oparoz commented Apr 20, 2015

I've actually linked to this change above and @Spacefish has been
kind enough to fix this in a PR.
The branch which works with 8.1 is currently called dev.

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

3 participants