Side navigation
#11487 closed bug (duplicate)
Opened March 19, 2012 02:44PM UTC
Closed March 20, 2012 12:05AM UTC
Last modified March 20, 2012 12:05AM UTC
Some effects (like fadeOut) don't work on sites using a strict Content Security Policy (CSP)
Reported by: | trhaynes | Owned by: | trhaynes |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | effects | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
It looks like fadeOut() works by setting a temporary inline style. This doesn't work when CSP [1] disallows inline styles.
I suggest modifying the DOM directly instead (something like element.style.opacity = 0.5).
Thanks for submitting a ticket to the jQuery bug tracker. Please provide us with a test case reproducing the issue you've described, ideally on http://jsfiddle.net. Please also ensure you've tested using the latest version of jQuery (jQuery Git/edge).