Error modern app after Login

Evertona year ago

Hello everything is fine?

I'm getting the below errors on these endpoints: api/devices, api/geofences, api/groups, api/drivers, api/maintenance , and api/calendars .

Erro: HTTP 401 Unauthorized-WebApplicationException(SecurityRequestFilter: 132<...<OverrideFilter: 49<...)

Does anyone have an idea how to resolve this?
Made Register and Login, but after I get this erros.

Anton Tananaeva year ago

The error means you're not logged in.

Evertona year ago

But can you understand why you are being logged out? Because in api/session I receive 200, go to home and correct Response according to my user.

Do you have any idea where I should debug to understand the error?

Anton Tananaeva year ago

Where are you calling those APIs from? Are you sure it's the same origin?

Evertona year ago

Is not same origin.
My API running in api.mydomain.com.br and my frontend in client.mydomain.com.br

Whats problem? I wanna using api.mydomain.com.br. Wont I succes?

Anton Tananaeva year ago
Evertona year ago

I understand why, thank you for the content and tip shared.

Would you have any tips on how to solve this problem? Knowing that mydomain.com.br is my landing page, api.mydomain.com.br is my API and cliente.mydomain.com.br is my traccar-web modern project.

Anton Tananaeva year ago

Use proxy.