Error modern app after Login

Everton3 months 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 Tananaev3 months ago

The error means you're not logged in.

Everton3 months 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 Tananaev3 months ago

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

Everton3 months 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 Tananaev3 months ago
Everton3 months 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 Tananaev3 months ago

Use proxy.