-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Warning: Binding style attributes may introduce cross-site scripting vulnerabilities #95
Comments
Hmm, I've introduced drag-to-toggle support in 5.1 with ember-gestures. But I didn't modify the label element, only the switch: v5.0.2...v5.1.1 . The problem doesn't happen in the demo app, so it might be caused by a combination of Ember addons or by a browser extension. Can you please try running your app with all browser extensions disabled? |
I have introduced In my app, I do see those It looks like a problem upstream. Note how Not sure why this happens. Can you please file an issue to ember-hammertime? |
What versions of the CLI and Ember are you both using? |
I tried ember-toggle with "ember new testapp" and it worked fine. I will now try with the same versions of the app where I am getting the deprecations to see if it triggers it. If it does not, I will need to start installing one addon at a time to see if that's the issue. |
Maybe see when hammertime fixed its deprecation, and do |
@FredUK Oh, then try this: html-next/ember-hammertime#29 @knownasilya We're on 2.12, in the process of updating to 2.15. |
Hi @knownasilya , the only thing using ember-hammertime is ember-toggle: @lolmaus Thanks for the suggestion. I have tried that and it didn't fix it seeing I'm running Ember 2.8.3: I have uninstalled about 8 or 9 packages but it's still throwing the deprecation warning. Just for the sake of it I'm just going to drop the npm and bower .json files here in case you guys can easily spot any package that might be causing it. If not don't worry I'll keep looking. Thanks for your help.
|
@FredUK I wonder if upgrading Ember CLI will do the trick. I mean, you're still gonna do it some day. Anyway, I believe this issue discussion has to be moved to the ember-hammertime issue queue. |
Alright, I'll do the ember-cli upgrade. Feel free to close this. Thanks a lot for your help. |
I feel I should add how I fixed it in case someone else comes across the same issue: The issue was gone when moving from Ember 2.9.1 to 2.10.2 |
I'm getting this warning everywhere I have a toggle on my site:
WARNING: Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes.
it tries to set the value
"touch-action: manipulation; -ms-touch-action: manipulation; cursor: pointer; display: none;"
into the style attribute of the on/off label element.However I can't seem to track where this is exactly happening in ember-toggle.
The text was updated successfully, but these errors were encountered: