mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 08:09:52 +08:00
feat(server): native safe fetch (#14931)
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user