# Error 400: redirect\_uri\_mismatch with Apps Script Web App

**URL:** <https://discuss.google.dev/t/error-400-redirect-uri-mismatch-with-apps-script-web-app/193613>\
**Category:** Compute Infrastructure\
**Created:** [July 7, 2025, 6:27pm UTC](https://discuss.google.dev/t/error-400-redirect-uri-mismatch-with-apps-script-web-app/193613 "2025-07-07T18:27:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EmilianoMtz](https://avatars.discourse-cdn.com/v4/letter/e/858c86/32.png) [@EmilianoMtz](https://discuss.google.dev/u/EmilianoMtz)\
**Post date:** [July 7, 2025, 6:27pm UTC](https://discuss.google.dev/t/error-400-redirect-uri-mismatch-with-apps-script-web-app/193613/1 "2025-07-07T18:27:00Z")

</div>

I made a web app that is a forms, Im asking for big files, so I decided to use OAuth 2.0 to upload files directly to Drive and avoid the 50MB limit.  
I created the credentials necesary and adjust my code, but at trying to authenticate hits me the pop up:

You can’t sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. [Learn more about this error](https://developers.google.com/identity/protocols/oauth2/javascript-implicit-flow#authorization-errors-origin-mismatch)  
If you are a developer of this app, see [error details](https://accounts.google.com/).  
Error 400: redirect\_uri\_mismatch

I tried modifying my url, but the one that sends me the error as “origin=” in my console is marked as invalid.

I want to know how to solve this.
