apostrophe-cms

apostrophe-oembed youtube videos are broken


Since a few days I am Facing an issue with videos embed using "apostrophe-oembed", I get an 403 error in the network tab. The videos worked before. Does anyone know if youtube changed something? When I query the video directly it works. enter image description here

Kind regards Gradlon


Solution

  • Thank you Alexbea. This did not work for me. What I did instead was:

    construct: (self, options) => {
        self.apos.oembed.oembetter.endpoints([
            { domain: 'youtube.com', endpoint: 'https://www.youtube.com/oembed' },
            { domain: 'youtu.be', endpoint: 'https://www.youtube.com/oembed' },
        ]);
    },