Your web origin in the Google API Console should only include http:// or https:// and then the host name. Make sure you don’t have / in the end. The web origin is under the OAuth 2.0 Client ID section in the Console.
Original error URL: http://www.example.com/
Remove the ‘/’: http://www.example.com
What do you think?