Get session 404

Shilanui 2 years ago

I have to call api/session and got response 404 not found. But It's work on postman.
(On postman I called post api/session first(create session done.) and then call get session)

Anton Tananaev 2 years ago

So you probably need to do the same thing as you do in postman?

Shilanui 2 years ago

Yes, I do the same as my postman. That just call GET api/session.
But I use axios lib on reactjs to call. It's was error 404.

Anton Tananaev 2 years ago

Are you sure you're sending the cookies?

Shilanui 2 years ago

It's require cookies? I saw in doc just sending the basicAuth, or do I something wrong?

Shilanui 2 years ago

1.png

This is my api headers

Anton Tananaev 2 years ago

How do you expect the session to work without cookies?

Shilanui 2 years ago

Which step did you store a cookies data on traccar-web app? Could you please point the code?

Anton Tananaev 2 years ago

It's done by the browser automatically.