Back

[SOLVED] missing redirect url Google OAuth web

  • 0
  • Web
Binyamin
25 Apr, 2023, 14:14

Cool, That's good

TL;DR
Issue: User is experiencing a "missing redirect url" error with Google OAuth web. Solution: The issue was resolved by enabling force http redirect and activating the proxy in Cloudflare. It was also suggested to update the hosts file to point a domain to localhost for development purposes. It was mentioned that using localhost or 127.0.0.1 could cause problems if the base domain doesn't match the Appwrite server. Additionally, the issue could be related to 3rd party cookies and server-side rendering. Custom domains and checking console errors were suggested as further troubleshooting steps.
bluesky
25 Apr, 2023, 14:14

But It's not working

Binyamin
25 Apr, 2023, 14:14

What you get here

bluesky
25 Apr, 2023, 14:14

I just copy from another login with mail session

bluesky
25 Apr, 2023, 14:14

Sould I delete?

Binyamin
25 Apr, 2023, 14:15

I mean what is being print to the console as the error?

bluesky
25 Apr, 2023, 14:15

Nevermind

bluesky
25 Apr, 2023, 14:17

I got this error when check user is logged in or not

Binyamin
25 Apr, 2023, 14:24

I don't know why it dosn't creates the session for you, everything looks intact.

bluesky
25 Apr, 2023, 14:40

Okaayy

bluesky
25 Apr, 2023, 14:40

Maybe I must explore

Drake
25 Apr, 2023, 16:21

It could be because of 3rd party cookies. If your app and Appwrite aren't on the same base domain, the Appwrite cookie is considered a 3rd party cookie and the browser may not include it in the request. This is where custom domains come into play: https://appwrite.io/docs/custom-domains

Another problem could be if you're using a framework with server side rendering. If account.get() is called server-side, it won't have the cookie that's on the client

bluesky
26 Apr, 2023, 00:07

How if I in development mode, whic is use localhost as domain or ip 127.0.0.1 ? It's not problem?

Drake
26 Apr, 2023, 00:09

that will probably be a problem because localhost or 127.0.0.1 do not have the same base domain as your appwrite server

bluesky
26 Apr, 2023, 06:44

How best practice if we want to develop in localhost?

Drake
26 Apr, 2023, 12:38

Update your hosts file to point some domain to localhost

bluesky
28 Apr, 2023, 12:50

[SOLVED] missing redirect url Google OAuth web

bluesky
28 Apr, 2023, 12:55

missing redirect url Google OAuth web

bluesky
28 Apr, 2023, 12:56

Hey, why I got this Error, like mismatch url. http / https?

Drake
28 Apr, 2023, 13:14

Is appwrite behind a reverse proxy?

bluesky
28 Apr, 2023, 13:14

I activate the proxy in cloudflare

bluesky
28 Apr, 2023, 13:29

Okay I got it, cause I'm not enable force http redirect from .env

Drake
28 Apr, 2023, 13:35

Did that fix it?

bluesky
28 Apr, 2023, 13:44

Yeah, I enabled the force redirect https

Drake
28 Apr, 2023, 13:51

[SOLVED] missing redirect url Google OAuth web

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more