Retrieve profile image to display on external site


(Ian Hitchcox) #1

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


(Jay Pfaffman) #2

See the cors origins setting:


(Ian Hitchcox) #3

Thanks a lot :slight_smile:
This fixed our issue.