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

Recaptcha audio does not work with CSP #47

Closed
haoqili opened this issue Jul 11, 2011 · 2 comments
Closed

Recaptcha audio does not work with CSP #47

haoqili opened this issue Jul 11, 2011 · 2 comments
Labels

Comments

@haoqili
Copy link
Owner

haoqili commented Jul 11, 2011

Warnings from firebug:

CSP: Directive "inline script base restriction" violated
onclick attribute on A element

CSP: Directive "object-src 'none'" violated by https://www.google.com/recaptcha/api//img/audiocaptcha.swf?v2

Gotta fix some onclicks ... bsterne suggested:
"add an id and then from external script say document.getElementById(your_id).onclick = your_function"
I also have http://curioushq.blogspot.com/2011/07/when-you-cant-onclick.html

haoqili added a commit that referenced this issue Jul 12, 2011
@haoqili
Copy link
Owner Author

haoqili commented Jul 12, 2011

The onclick fix doesn't solve the problem (but makes the warning go away).

The second, "object-src 'none'" is found for the working addons mozilla register as well. --> edit: but remember amo doesn't enforce CSP.

So I think there is some more stuff I need to investigate for onclick

haoqili added a commit that referenced this issue Jul 12, 2011
@haoqili
Copy link
Owner Author

haoqili commented Jul 12, 2011

Just had to add the policy to deal with CSP_OBJECT_SRC to allow google

@haoqili haoqili closed this as completed Jul 12, 2011
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

1 participant