Connet externar version web

Ariel rodriguez3 years ago

When I give it to obtain a session with the token that it generates in tracar's own web version, and I try to generate a session in my own web version, the JSESSIONID cookie does not set me, I have days trying and it does not let me

Anton Tananaev3 years ago

If the host is different, you might need to configure CORS etc.

Ariel rodriguez3 years ago

Greetings, can you tell me how I configure the CORS?

Anton Tananaev3 years ago

Something like this:

<entry key='web.origin'>*</entry>
Ariel rodriguez3 years ago

I already put it but it does not work for me, say if it makes the request and returns a response, for the cookie is not inserted, therefore it does not let me connect to websocket, I put that configuration in default.xml

Anton Tananaev3 years ago

Have you configured web.sameSiteCookie as well?

Ariel rodriguez3 years ago

No

Ariel rodriguez3 years ago

No, how do I do that configuration? I would also like to know if you can include in the next version that the socket is also authenticated with basic auth, that it can send an Authorization header with 'Basic dmksofjsdfs =='