Our logo Kybercode
Home
Archive
Articles
Shared
Bits
About
Contact
Home
Archive Articles Shared Bits

About
Contact
RSS
Search
Embeds Today I Learned
Cooper Gidge on Dec 14, 2024.

When using oEmbed on Discord, make sure you include your website domain in the discovery URL. In my <head> element, I specified my oEmbed support like:

<link type="application/json+oembed" href="/path/to/oembed.json">

But Discord (truth be told, they're all I checked) wasn't including it in their embeds until I changed it to:

<link type="application/json+oembed" href="https://www.example.com/path/to/oembed.json">

So maybe it's not a bad practice to include the site domain in all href attributes.

Comments

There are no comments yet. Be the first to post one!

Leave a Comment

Thank you for posting a comment! It will be reviewed and if it passes our checks, it'll be published.

Replying to

This will be publicly displayed with your comment.

Contribute to the conversation! Markdown supported.

Keep Reading

Previous Obligatory End Of Year Post

By Cooper Gidge on Jan 1, 2025.

Next How To Automate Open Graph Images With Eleventy

By Cooper Gidge on Dec 5, 2024.

Browse More
The AI Bubble Burst, Just Not In The Way I Was Expecting

By Cooper Gidge on Jan 28, 2025.

Why I Don't Use JavaScript Frameworks

By Cooper Gidge on Jan 19, 2025.

How To Automate Open Graph Images With Eleventy

By Cooper Gidge on Dec 5, 2024.

Featured
Logo Kybercode

All things about software and website development.

RSS
Resources
Home Archive Articles Shared Bits Topics
About
About Contact
Copyright © 2025 Kybercode
Privacy Policy
Home
Archive
Articles
Shared
Bits