Traccar shows an error when trying to load the website inside an iframe

shahud3 years ago

Hi. I was trying to add traccar as a website in home assistant ( which uses iframe ) and it gives me this error.

Things I tried:

  • Home assistant and traccar both are in a secure HTTPS server.
  • Tried using the token key to load without using a username / password. But still get the same error.

This is the error that I get:

HTTP 401 Unauthorized - WebApplicationException (SecurityRequestFilter:113 < ...)

I get this error as soon as I login. Any idea what might be causing this error :/ I have been trying to fix it for days to no avail.

Anton Tananaev3 years ago

That's probably an issue with cookies. They are restricted in a frame.

shahud3 years ago

Thanks Anton