feat(server): native safe fetch (#14931)

This commit is contained in:
DarkSky
2026-05-09 02:40:25 +08:00
committed by GitHub
parent 32a94d68dc
commit bcbde16c04
30 changed files with 1370 additions and 526 deletions
@@ -66,6 +66,10 @@ export type EmbedIframeConfig = {
* The function to build the oEmbed URL for fetching embed data
*/
buildOEmbedUrl: (url: string) => string | undefined;
/**
* Validate the final iframe src before rendering.
*/
validateIframeUrl?: (iframeUrl: string, originalUrl?: string) => boolean;
/**
* Use oEmbed URL directly as iframe src without fetching oEmbed data
*/