cleanup: remove CORS transformation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user