as a beginner, I have some problems in using Ajax (with Discogs API) .. to get a discogs request token, discogs is saying https://www.discogs.com/developers#page:authentication,header:authentication-discogs-auth-flow but, how to write this header? below is my trying code, but I know this is not proper. Answer You said: It isn’t possible to specify headers for JSONP requests. The API can’t be using JSONP.