避免使用“Google地图”映射嵌入到网页中以存储cookie [英] Avoid a "Google Maps" map embedded into a web page to store cookies

查看:173
本文介绍了避免使用“Google地图”映射嵌入到网页中以存储cookie的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的网站页面,其中嵌入了iFrame中的地图(来自 Google地图)。

I have a simple web site page with a map (from Google Maps) embedded into an iFrame.

<iframe src="https://www.google.com/maps/embed? .... ></iframe>

参见小提琴为例。

将地图嵌入页面会导致存储 Google的Cookie 客户的浏览器。

Embedding the map into the page results in Google's cookies being stored on the client's browser.

有什么办法可以避免吗?

为什么我要问这个:

在欧盟一个存储第三方Cookie的网站在用户的设备上需要获得用户的知情同意,并让她/他自行决定阅读有关cookie和隐私的长文档。参见 Cookies - 欧洲委员会

in the EU a web site that stores 3rd party cookies on the user's device is required to get informed consent from the user and give her/him discretion to read a long document about cookies and privacy. See Cookies - European commission

仅使用会话cookie(非持久性)的网站是<强烈>不需要获得知情同意。

A web site that uses only session cookies (non persistent) is not required to get informed consent.

T这里有许多简单的网站,其目的只是为餐馆,商店等商业活动提供基本的在线形象。

There are many simple websites whose purpose is just to give basic online presence to commercial activities such as restaurants, shops and so on.

通常这些网站只需要会话cookie(或根本没有饼干。

Normally those websites only need session cookies (or no cookies at all).

然而,由于其中许多人使用嵌入式Google地图的地图来显示其位置,因此他们会自动属于存储第三方Cookie的网站并且必须遵守欧盟关于此的所有义务。我认为显示地图的开销太大了。

However as many of them use embedded Google Maps' maps to show their location they automatically fall into the category of "websites that stores 3rd party cookies" and must obey all the EU obligations regarding that. I think too much overhead for just displaying a map.

推荐答案

也许你可以使用cookieless google maps v3:

Maybe you can use cookieless google maps v3:

https://mapsplatform.googleblog.com/2011/10/a-grab-bag-of-maps-api-news.html


您中间的老鹰可能已经发现我们已更新了所有文档,建议您从maps.googleapis.com而不是maps.google.com或maps-api-ssl加载Maps API .google.com。从maps.googleapis.com加载时,Maps API v3的当前实现不依赖于与Google交换Cookie。这提高了API的安全性和带宽受限网络的性能。因此,我们建议所有网站切换到使用maps.googleapis.com。

The eagle eyed amongst you may have spotted that we have updated all of our documentation to recommend that the Maps APIs be loaded from maps.googleapis.com rather than maps.google.com or maps-api-ssl.google.com. When loaded from maps.googleapis.com, the current implementation of the Maps API v3 does not rely on the exchange of cookies with Google. This improves both the security of the API, and the performance on bandwidth constrained networks. We therefore recommend all sites switch to using maps.googleapis.com.

链接到教程:

https://developers.google。 com / maps / documentation / javascript / adding-a-google-map

这篇关于避免使用“Google地图”映射嵌入到网页中以存储cookie的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆