How to Fix Error 400: redirect_uri_mismatch (Complete Guide)

How do you fix Error 400: redirect_uri_mismatch? This error generally appears if you’ve not registered an ‘Authorized redirect URI’ where the response is returned or registered incorrectly in the APIs console.  

This article will explain “error 400: redirect_uri_mismatch” and present three applicable methods to fix it.

What is “400: redirect_uri_mismatch”?

The “400: redirect_uri_mismatch” error occurs when adding the Client ID and Secret to SSA at the end of the process. Typically this error is related to the URL of your website needing to be entered correctly in the API console about the newly created Client ID and Secret.

It is a problem with the URL and not your fault; Google is very particular about URLs. A trailing slash can cause this issue.

How to Fix 400 Redirect_uri_mismatch?

This error typically occurs when you do not have an authorized redirect URI registered on the APIs Console or if you have registered an incorrect redirect URI in the APIs Console. This section will present three methods to fix the error 400: redirect_uri_mismatch in WordPress.

Method 1: Enter Authorized redirect URIs

Follow these steps to fix Google OAuth 400 redirect_uri_mismatch by entering an authorized redirect URIs:

  1. Go to the API Console.
  2. Check the top-left corner and select the correct project.
  3. Go to APIs and Services and click on Credentials.
Go to APIs and Services and click on Credentials

  1. Click on the OAuth Client Id you created.

Click on the OAuth Client Id you created

  1. Go to the Authorized redirect URIs section.
  2. Click on the Add URI button and add your authorized redirect URI.
Go to the Authorized redirect URIs section and click on the Add URI button

Try the next method if this method does not work to fix the Google redirect_uri_mismatch error.

Method 2: Adding the URL from the Error Message

Adding the URL from the error message is another method to fix the “400: redirect_uri_mismatch” error. Follow these steps to use this method:

  1. Add the exact URL you see in this error message.
  2. Select Save and try again. 

If this does not help, please consider testing out a variety of URLs as the next method.

Method 3: Entering a Variety of URLs

As we mentioned above, Google is quite picky regarding URLs. A trailing slash may cause this error.

Therefore, follow these steps to use this method:

  1. Enter various URLs into the Authorized Redirect URIs section. You are welcome to include every version of your URL under the Authorized Redirect URIs section. Enter the following URLs:

  • Trailing slash vs. no trailing slash:
https://yoursite.com/

https://yoursite.com
https://www.yoursite.com

https://yoursite.com
  1. Click on the Save button and try again when you’re done adding the variety of URIs from above.
Enter various URLs into the Authorized Redirect URIs section and click on the Save button

Conclusion

Throughout this article, we have explored what “400 redirect_uri_mismatch” is and presented three possible solutions to fix this problem.

Thanks for taking the time to read this article. In the comments section, you may post your comments or questions.

Following us on Facebook and Twitter will ensure that you are kept up to date on our articles.

9 thoughts on “How to Fix Error 400: redirect_uri_mismatch (Complete Guide)

  • renewable energy companies in malaysia

    Why visitors still make use of to read news papers when in this technological
    world the whole thing is existing on net?

  • seo marketing tools

    An intriguing discussion is definitely worth comment.
    There’s no doubt that that you need to write more about this
    subject, it might not be a taboo matter but usually people do not
    discuss such topics. To the next! Many thanks!!

  • เว็บคาสิโนออนไลน์

    928BET.PRO เว็บคาสิโนออนไลน์ ที่ได้รับมาตราฐานเป็นสากลได้รับการยอมรับจากทั่วโลก ว่ามีความปลอดภัยในด้านของการเงิน และ บัญชี เดิมพันได้อย่างปลอดภัยกว่าที่ออื่น รับประกันความเร้าใจตลอดการเล่นแน่นอน พร้อมทั้งมีทีมงานฝ่ายซัพพอร์ต ที่จะคอยให้คำแนะนำกับผู้เล่น ผ่านแชทไลน์ตลอด 24
    ชั่วโมง สนุกครบจบในเว็บเดียว

  • kcupqueen

    I absolutely love your blog and find a lot of your post’s to be just what
    I’m looking for. Do you offer guest writers to write content to suit your needs?
    I wouldn’t mind creating a post or elaborating on some of
    the subjects you write with regards to here. Again, awesome web log!

  • joker 388

    Wow! At last I got a webpage from where I be capable of genuinely get valuable information concerning my
    study and knowledge.

  • bildungsungleichheit

    I’ll right away snatch your rss as I can not to find your e-mail subscription hyperlink or e-newsletter service.

    Do you’ve any? Kindly permit me understand in order that I may just subscribe.
    Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *