How to get character_id for browser apps

I have a browser app without any server. I can get the access token using the implicit way. Now I want to get the character_id from the access token.
I try to do a XMLHttpRequest to Unfortunately the browser creates an OPTION request instead of a GET request and creates it without the necessary autorization header. So the CCP server responds with 404 and refuses to return a character id.

Can anyone give me a hint how to get a character_id in a browser only app?


Got it!
The URL seems to be invalid. It works fine when using the URL

I use in my website and it returns the char id just fine.

Look over this:

Please note that: will prime the ESI auth cache, making the rest of the endpoints somewhat faster. If you plan to use the auth for ESI, always use :slight_smile:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.