Re:Chrome 56 Beta: “Not Secure” Warning, Web Bluetooth, and ...
by robryk on Friday December 09, 2016 @11:52AM
(#13139855)
Don't do this on your domain. Have a separate domain for user content (and, if the content isn't public, better have many separate domains and distribute the content between them; maybe even have a per-user domain). Browsers can be convinced that a particular resource is an html page even if the content-type is wrong.
Eg. https://yourdomain.com/usercontent/worldofcats.com/foobar.jp...
There exist simple php scripts which can do that for you. Beware to sanitize the URL very well, and probably enforce file size rules.