cleanup: remove CORS transformation

This commit is contained in:
Matthew Raymer
2025-07-23 03:49:46 +00:00
parent ab1c48eade
commit 986027563e

View File

@@ -979,24 +979,3 @@ export async function importFromMnemonic(
});
}
}
/**
* Legacy function name maintained for compatibility.
* Now simply returns the original URL since CORS headers have been disabled
* to allow images from any domain.
*
* @param imageUrl - The original image URL
* @returns The original image URL unchanged
*
* @deprecated CORS restrictions have been removed - images load directly from any domain
*/
export function transformImageUrlForCors(
imageUrl: string | undefined | null,
): string {
if (!imageUrl) return "";
// CORS headers disabled - all images load directly from any domain
// This enables the community nature of Time Safari where users can
// share images from any website without restrictions
return imageUrl;
}