Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positive Embed (Basic) API #16

Closed
pdelteil opened this issue Feb 5, 2021 · 2 comments
Closed

False positive Embed (Basic) API #16

pdelteil opened this issue Feb 5, 2021 · 2 comments

Comments

@pdelteil
Copy link

pdelteil commented Feb 5, 2021

I used the latest version (pulled the code one hour ago)

Try this key AIzaSyB3MeUSpCntta2BW8UeLmVlRgnM7tB6hio.

Then if you try the generated iframe code:

<iframe width="600" height="450" frameborder="0" style="border:0" src="https://www.google.com/maps/embed/v1/place?q=Seattle&key=AIzaSyB3MeUSpCntta2BW8UeLmVlRgnM7tB6hio" allowfullscreen></iframe>

You will get this:

Screenshot from 2021-02-05 19-18-24

@ozguralp
Copy link
Owner

ozguralp commented Feb 6, 2021

I am saving the iframe code as html file on my local pc and opening it in the browser which successfully loads the iframe.
On your case, since you loaded iframe to www.w3schools.com, probably it is returning error.
Adding <meta name="referrer" content="no-referrer"/> to your HTML code will bypass that control & solve the issue.

Reference to that: https://ozguralp.medium.com/google-maps-api-not-the-key-bugs-that-i-found-over-the-years-781840fc82aa

@ozguralp ozguralp closed this as completed Feb 6, 2021
@pdelteil
Copy link
Author

pdelteil commented Feb 7, 2021

Thanks for the info @ozguralp . I will try harder next time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants