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 warning #35

Open
mikeazo opened this issue Dec 9, 2014 · 0 comments
Open

Content Security Policy warning #35

mikeazo opened this issue Dec 9, 2014 · 0 comments

Comments

@mikeazo
Copy link

mikeazo commented Dec 9, 2014

In Firefox and Chrome (haven't tried IE), I'm getting a content security policy warning upon calling $.ajax. If I change the content security policy to unsafe-inline on script-src, the issue goes away.

I used the debugger to track the issue. It appears to happen when the iframe is appended to the body.

I change line 193,194 from

iframe = $("<iframe src='javascript:false;' name='" + name +
            "' id='" + name + "' style='display:none'></iframe>");

to

iframe = $("<iframe name='" + name +
            "' id='" + name + "' style='display:none'></iframe>");

and the warning goes away. I am not sure, however, what else this might affect.

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

No branches or pull requests

1 participant