Connet externar version web

Ariel rodriguez4 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 Tananaev4 years ago

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

Ariel rodriguez4 years ago

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

Anton Tananaev4 years ago

Something like this:

<entry key='web.origin'>*</entry>
Ariel rodriguez4 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 Tananaev4 years ago

Have you configured web.sameSiteCookie as well?

Ariel rodriguez4 years ago

No

Ariel rodriguez4 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 =='