• I am attempting to integrate the Google Maps API into my site. I’d much rather use my own custom JS than have to go through a bunch of plugins. I was hoping I would just be able to plug the usual script tag into the page to activate the API.

    <scrip src="https://maps.googleapis.com/maps/api/js?key=my_key&callback=initMap&libraries=places,drawing" async defer>

    I’ve plugged my code into a Custom HTML block, but when it runs I am getting a ‘ERR_BLOCKED_BY_CLIENT’ error from the server. It does run the callback function, but nothing else. Is it possible to accomplish what I am attempting through WordPress, or is this just not possible?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    ERR_BLOCKED_BY_CLIENT means your browser (the “client”) is responsible for the blocking. This is usually due to an ad blocker or privacy extension. If you disable ad and privacy filtering for your site the error should go away.

    However, many other users likely use similar extensions and will experience similar problems. There are scripts that can often detect this kind of filtering and display a message encouraging the user to disable filtering on your site so they can see your map.

    Thread Starter partynoparty

    (@partynoparty)

    I am able to run the same script, in the same browser, on a localhost connection without any issue.

    Thread Starter partynoparty

    (@partynoparty)

    Just to clarify, the localhost instance is not through WordPress

    Thread Starter partynoparty

    (@partynoparty)

    I think you might be correct though. I’ll experiment a bit more. thanks for the tip.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Google Maps API integration – ERR_BLOCKED_BY_CLIENT’ is closed to new replies.