Problem/Motivation
When copying an embed code from X (formerly Twitter), the script tag defaults to:
<script async src="https://platform.x.com/widgets.js" charset="utf-8"></script>
When attempting to save this snippet using the Media Embeddable module, the application triggers a validation error stating that the domain is not allowed. However, if the source is manually changed back to the legacy domain (`https://platform.twitter.com/widgets.js`), it passes validation seamlessly.
The module's built-in filtering logic or default settings configuration needs an update to explicitly recognize `x.com` domains alongside legacy `twitter.com` domains.
Proposed resolution
Update the default allowed hosts configuration to support and whitelist `x.com` resource origins.
Issue fork media_embeddable-3593009
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
reemsaleem commentedComment #5
omar_emailat commented