Missing referer error for

Created on 6 November 2024, 19 days ago

Problem/Motivation

Embeded media not loading as a reference page restriction in Embed.php

Proposed resolution

// Get the current URL.
      $current_url = Url::fromRoute('<current>', [], ['absolute' => TRUE])->toString();

      $response = $this->httpClient->get($this->getEmbedProviderURL($url), [
        'headers' => [
            'content-type' => 'application/json',
            'Referer' => $current_url
        ]
      ]);
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇴Colombia julianmancera

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024