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 policy #185

Open
rtv2222 opened this issue May 18, 2016 · 4 comments
Open

Content security policy #185

rtv2222 opened this issue May 18, 2016 · 4 comments
Labels
Milestone

Comments

@rtv2222
Copy link

rtv2222 commented May 18, 2016

What's the best way to enable a Content Security Policy on my pages so that SVGs generated by holder.js are not blocked ? I have an img-src of self and that does not permit holder.js generated images to be served by the browser.

@imsky
Copy link
Owner

imsky commented May 18, 2016

will look into it. can you try data-src in the meantime?

@imsky imsky added the bug label May 18, 2016
@rtv2222
Copy link
Author

rtv2222 commented May 23, 2016

@imsky imsky added this to the 2.10 milestone Jun 7, 2016
@hiro20v
Copy link

hiro20v commented Oct 28, 2017

In my case, I could fix it with the following code.

exports.setAttr = function (el, attrs) {
    for (var a in attrs) {
        if('style' == a){
            el.style.cssText = attrs[a];
        }else{
            el.setAttribute(a, attrs[a]);
        }
    }
};

Errors can be seen in this project.
https://github.com/hiro20v/FinePlay
2017/10/28 now, I haven't fixed it yet.

@imsky
Copy link
Owner

imsky commented Oct 28, 2017

nice, thanks for the info @hiro20v

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