Fix slideshare CSP error by always using HTTPS

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-08-12 21:07:59 +02:00
parent 31bfd6d779
commit d56ff5bdf3
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -453,7 +453,7 @@ export function finishView (view) {
.each((key, value) => {
$.ajax({
type: 'GET',
url: `//www.slideshare.net/api/oembed/2?url=http://www.slideshare.net/${$(value).attr('data-slideshareid')}&format=json`,
url: `https://www.slideshare.net/api/oembed/2?url=https://www.slideshare.net/${$(value).attr('data-slideshareid')}&format=json`,
jsonp: 'callback',
dataType: 'jsonp',
success (data) {