开发者

Cross Domain GeoLocation Tracking

I am trying to track user location (HTML5 GeoLocation) on multiple domains, by asking user permission for once. For example:

  • User gives permissions on example.com
  • example2.com adds a script/iframe from example.com
  • User enters on example2.com
  • User location is tr开发者_运维技巧acked by example.com and location specific content is shown to user.

Currently, if I add an iframe from example.com, even example.com has permissions to track user location, browser is asking for location tracking again, since there's no permission on example2.com. Is there any way to remove multiple times permission asking process, since we will be inserting these location tracking widgets to multiple webpages?

Thanks in advance.


AS the iframe would be able to send the GEOLocation information to the example.com page I would say and also hope that the user has to be asked again. Otherwise you would be able to track a users position from different pages using a hidden iframe and the user will never know about it, as he might have given that side a permission once.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜