Browse Source

cleanup: remove CORS transformation

pull/142/head
Matthew Raymer 3 days ago
parent
commit
986027563e
  1. 21
      src/libs/util.ts

21
src/libs/util.ts

@ -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;
}

Loading…
Cancel
Save