Open sivakumar-kailasam opened 8 years ago
It looks like it happens here https://github.com/wnr/element-resize-detector/blob/64fd69d6be269015fe36860491e067190e1a5f16/src/detection-strategy/scroll.js#L60
Would we need to ask elemenent-resize-detector
library to provide an option to not inject their own style?
Yes, let me raise an issue in that repo and reference it here for tracking this.
Was an issue ever raised with element-resize-detector
about its CSP violation?
@gtb104 nope, I tried the alternate approach but that didn't help either and I didn't get the time to get back to it.
@sivakumar-kailasam I'm sorry, what was the "alternate approach"?
element-resize-detector has two strategies as shown in https://github.com/wnr/element-resize-detector/blob/64fd69d6be269015fe36860491e067190e1a5f16/benchmark/install.js#L41. I tried using the object strategy without much luck.
Element resize detector adds the following block to the page which forces apps implementing CSP to relax their rules for styles making their app vulnerable. Is this something that can be avoided? May be add this as a vendor stylesheet?