Henrik
February 4, 2021, 1:41pm
1
When I try to oEmbed an URL in Item>Media I get the error “Invalid OEmbed URL”. The URL used: https://sketchfab.com/oembed?url=https://sketchfab.com/models/d2db632ea89745f48ddd6f20eabcdbdc
gives a response and I think it is constructed correctly according to the guidelines from Sketchfab. What am I doing wrong?
Regards
Henrik
There’s a configured list of allowed OEmbed URLs, and you get this message if the service you’re using isn’t on that list. You can add allowed URLs to the list in config/local.config.php, by adding:
'oembed' => [
'whitelist' => [
'#^https://sketchfab\.com/3d-models/.*$#i',
],
],
The other aspect is: the OEmbed option expects you to give the URL to a regular HTML page that links to the OEmbed info. In this case, it would want you to give https://sketchfab.com/3d-models/kristushuvud-fran-gothem-kyrka-gfdepc905-d2db632ea89745f48ddd6f20eabcdbdc as the URL.
system
Closed
October 13, 2021, 11:28pm
4
This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.