• Resolved Rose Mckeon

    (@rozeykex)


    I was getting an origin_mismatch error when I authenticate in the add Google media window. Figured out the error only occurs if I am logged into the admin area via my Google Account. Works great as long as I am logged in with my ordinary WordPress user admin. Would be nice to be able to use the features of the Google Apps Login plugin alongside this one.

    https://wordpress.org/plugins/google-drive-embedder/

Viewing 1 replies (of 1 total)
  • Rose,

    Thank you for your message. There must be something different about your login page compared to your admin page in WordPress.

    You need to make sure both base URLs are covered in the Javascript Origin box in Google Cloud Console.

    It could be as simple as one is using https and the other is http.

    E.g. https://mysite.com/wp-login.php
    and http://mysite.com/wp-admin/
    (Assuming you have entered only http://mysite.com in Google Cloud Console’s Javascript Origin box)

    Or you could have a situation where your site is accessible at both
    http://mysite.com and http://www.mysite.com
    (In which case, you could either put all 4 versions in the Google Cloud Console box – including https and http variations, or even better try to get your site to have only one canonical URL – i.e. always get http://mysite.com to redirect straight to http://www.mysite.com.)

    Please could you send me an email copy-and-pasting the following:
    The URL in your browser bar when you’re on the login page
    The URL in your browser bar when you’re on the admin create post page
    And the settings in your Javascript Origin and Redirect URI boxes in Google Cloud Console project.

    Email is contact@wp-glogin.com

    And let me know if any of the above doesn’t make sense.

    Thanks,

    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘Origin_mismatch error when logged in with Google’ is closed to new replies.