figma.currentUser
returns the following object -
{
"id": "XXXXXXXXXXXXXX8765",
"photoUrl": "https://s3-alpha.figma.com/profile/c7cea5ee-1847-4057-b089-39b825fe81e6",
"name": "John Doe",
"color": "#667799",
"sessionId": 23
}
The photoURL has strict-origin-when-cross-origin
, which results in tainted canvas
while converting it to blob, and hence cannot be exported or used within figma fills
as a paint.
Is there any possible workaround, apart from setting up a custom proxy cors server.