Retrieve profile image to display on external site

Hi

I want to grab a user’s image from our discourse forum and be able to consume it via JS or the Java Spring backend.

I currently get a cross origin error when doing a standard ajax call for the image.

Is it possible to do it this way?

Currently trying:
'http://forum.oursitename.com/user_avatar/forum.oursitename.com/' + playerName + '/120/1079_1.png'

Thanks

See the cors origins setting:

6 Likes

Thanks a lot :slight_smile:
This fixed our issue.