Hello Anton,
Have setup a new server but lost the settings i made.
I now have in app.js
var url = "https://xx.xx.xx.xx:443";
var token = "DNZCXmyZxXVUiOnHKFcFa0DtrLxZU8VQ";
I want to embedd it in my wordpress website, but whem i go to mydomain.com/traccar/web/simple i do not see the tracker.
Have you checked browser console? If you're embedding in a frame, it probably doesn't allow cookies, so authentication doesn't work properly.
I'm not embedding yet in wordpress.
See my link
https://travelingscouts.com/traccar/web/simple/
I see multiple issues right away:
Yes, i saw. Will the certificate be the problem? I saw the problem with the certificate. Tomoroow i have to contact my VPS hoster because of that. Because i can't fix that myself.
Anton,
Still not managed to get it embedded in WP.
When i load the page i am embedding directly i see the GPS location.
When embedding with:
<iframe src="https://traccar.xxx.nl/simple/?token=DNZCXmyZxXVUiOnHKFcFa0DtrLxZU8VQ"></iframe>
I see the map, but not the GPS location. (Not loggedin)
I see this error in the console
app.js:112 WebSocket connection to 'wss://traccar.xxxxx.nl/api/socket' failed:
(anonymous) @ app.js:112
xhr.onreadystatechange @ app.js:92
Frames have restrictions on cookies. Have you considered that?
No, i didn't realize that.
But you are telling it can't be done?
I haven't tried, so not sure.
i read someting about
<entry key='web.sameSiteCookie'>None</entry>
But where cam i find this
You can add it to the config file.
And the config file is??
(Sorry can't find a file config.xxx
Have you checked the documentation?
Oke found it!
But it doesn't change any thing for the result
also tried
<entry key='web.sameSiteCookie'>None; Secure</entry>
Edit: Got it working. Thanks
you mean this in app.js
how is the right notification?
var url = "https://xx.xx.xx.xx:8082"; var token = "6U3VfGkZd9Q7LO4hbwY6I5m1HXPowmmx";