Retrieve profile image to display on external site

(Ian Hitchcox) #1


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:
'' + playerName + '/120/1079_1.png'


(Jay Pfaffman) #2

See the cors origins setting:

(Ian Hitchcox) #3

Thanks a lot :slight_smile:
This fixed our issue.

(system) #4

(Régis Hanol) #5