How to place currentUser.photoUrl on rectangle fill?

figma.currentUser returns the following object -

      "id": "XXXXXXXXXXXXXX8765",
      "photoUrl": "",
      "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.

I don’t think so… :grimacing: Would be happy to be wrong though.

1 Like