
Hi, I am building a web application on example.com. And I have self-hosted the appwrite console on the app.example.com subdomain.
When I tested the login system I got a few problems where I need your help. The login system is working fine and a session is created when tried to log in. But the appwrite web sdk is somehow not able to get the account details after login.
So, I am getting a 401 error when I try to access account details after login. I guess that it has something to do with cookies. May be my self-hosted setup has some problems and is not able to set cookies.
I need your help to fix this!

Do you have a reverse proxy? Are you using https for everything?

@Steven Yes, I am using Cloudflare.

I think you might need to set the SSL settings to flexible or something so that the connection between cloudflare and Appwrite uses https

SSL settings is set to flexible but not working.

I managed to fix it by setting cloudflare to DNS only and using this guide - https://appwrite.io/docs/certificates

Still, I want to know, is it possbile to use appwrite with cloudflare proxy?

yes, you should be able to

Okay, Its working if i set to full ssl

great! can i mark this as solved now?

Yesπ

[SOLVED] Login with Oauth not working on a self hosted Appwrite install
Recommended threads
- New Provider isn't working | Invalid OAu...
Hallo, I set up a new provider in Appwrite. I followed all the documentation, I set up everything, I successfully ran both Appwrite console and backend, and I f...
- github copilot for xcode MCP AppWrite
I am trying to connect github copilot for xcode to appwrite mcp server. I keep getting a β’ MCP error -32000: Connection closed. I tried to verify my info, so...
- Appwrite Sites: Error At Deployment
Hello, I am using Appwrite 1.7.4 on a self-hosted instance and am experiencing an issue with Appwrite Site's manual deployment. ```powershell [12:44:43] [open-...
