avoid data uri’s for frame-src
-
I have been tightening up security on my websites, and have set HSTS headers which allow for jetpack.wordpress.com and widgets.wp.com for frame-src attributes. However I recently started getting an error:
Refused to frame '' because it violates the following Content Security Policy directive: "frame-src https: jetpack.wordpress.com widgets.wp.com".Upon inspection, I see that jetpack is using an image data uri for the “like” iframe. Would it be possible to avoid using data uri’s as src of iframes? Perhaps just install the image locally and use the local file as frame-src (I’m guessing this is for lazy loading, until the actual source of the iframe is loaded from jetpack.wordpress.com).
The topic ‘avoid data uri’s for frame-src’ is closed to new replies.