使用iframe显示客户端已设置的Google地图时,我会继续
" XMLHttpRequest无法加载 https://accounts.google.com/ServiceLogin?service=mymaps&passive=1209600&continue=https://www.google.com/maps/d/gen204?a%3D58%26width%3D525%26height%3D295%26s%3D7&followup=https://www.google.com/maps/d/gen204?a%3D58%26width%3D525%26height%3D295%26s%3D7。 No' Access-Control-Allow-Origin'标头出现在请求的资源上。起源' https://www.google.com'因此现在允许访问。
我知道在访问json对象时使用JSONP,但据我所知,这并不是我想要做的事情。
iframe的代码只是:
<iframe src="https://www.google.com/maps/d/embed?mid=CLIENTS_IDmsa=0&ie=UTF8&t=h&z=11&output=embed"></iframe>
我是否可能需要某种键才能使用此地图?
显示地图,但我想摆脱控制台中的错误。
任何指针?
答案 0 :(得分:1)