When bots are visiting /media/oembed it gives an error in error log
Symfony\Component\HttpKernel\Exception\BadRequestHttpException: This resource is not available in Drupal\media\Controller\OEmbedIframeController->render() (line 144 of /code/web/core/modules/media/src/Controller/OEmbedIframeController.php).
visit /media/oembed without get params and not using get
Add to media.routing.yml routing media.oembed_iframe
- add methods: [GET]
- to requirements: all needed params ( required url and optional - width, height, hash)
It will prevent log errors and make them less breakable as requests will be already checked.
Active
11.0 π₯
Last updated