Only secure origins are allowed (my location click)

Macan2 years ago

Hello,

recently I installed traccar and make redirections via apache to SSL that traccar can use subdomain and it is working fine with web browser and there is on location click it is showing my location .

When I tried to change the server url in my traccar android app to https://my.subdomain.com I got error "no connection" and I changed the server url to: http://my.subdomain.com:8082 then it is loading and everything is fine, but when I login and when I click on the button My location I get this message: "Only secure origins are allowed (see https:goo.gl/xxxxxxx) . But I tried demo traccar url (which is not using https/ssl) and button My location is working fine, why is not working via my server ?

Video :
https://drive.google.com/file/d/17qzL18UrjHp3NFcC1Sw6EgGx95XTHNJa/view?usp=sharing

Anton Tananaev2 years ago

Demo servers redirect you from HTTP to HTTPS, so you end up on a secure version.

Macan2 years ago

Yes, I understand but I am also make auto redirection from http to https and it is working via browser fine but app doesnt pick it up or something.

Anton Tananaev2 years ago

There's probably some misconfiguration on your end.