Serving ZeroClipboard SWF from CDNJS fails when used from HTTPS page and then from HTTP page

Author: aolesCreated Jan 26, 2016Updated Feb 12, 2017
LabelsPlatform: FlashLimitation: Security Restriction

I use the approach described in Cross-Protocol Limitations to serve ZeroClipboard.swf from CDNJS on pages for which the protocol can vary. Things worked fine until yesterday, but today I've noticed that it doesn't work for pages served over HTTP any more, but for ones using HTTPS it works fine. I use the following configuration:

ZeroClipboard.config( { swfPath: '//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.swf' } );

I tried to use HTTP explicitly for content served over HTTP, but this also doesn't work now:

ZeroClipboard.config( { swfPath: 'http://cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.swf' } );

Thank you for any input!

Source: zeroclipboard/zeroclipboard