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.

Command icon 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

reemsaleem created an issue. See original summary.

reemsaleem’s picture

Issue summary: View changes

  • omar_emailat committed f7f1e59c on 1.x
    Issue #3593009 by reemsaleem: Add x.com (formerly Twitter) to...
omar_emailat’s picture

Version: 1.1.1 » 1.1.2
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.