Discussions

Ask a Question
Back to All

Display user avatars

Image a plugin where users interact with each other. Current viewing user see's the other user's interaction. I like to display their avatars next to their names.

Can you give some hints if and how that's possible?

I tried the following:

Fetch /api/users REST API and get their imageUrls.avatar. Replace /api with /web and place this URL into an IMG-tag inside the plugin. This works for Firefox, but Chrome denies this due to SameSite-Attribute of COYOSESSION cookie.