Back

[SOLVED] Security issues despite using subdomain

  • 1
  • Accounts
  • Flutter
Samuel Kings
21 Jul, 2023, 11:30

Hello, I am using my sub domain as my project endpoint, however, I still get this error.

Appwrite is using localStorage for session management. Increase your security by adding a custom domain as your API endpoint.

Why am I still getting this error?

TL;DR
Title: [SOLVED] Security issues despite using subdomain Messages: - If you're getting the error on localhost, it's expected. Use a platform with a domain different from your app's domain. - Make sure you've added your domain as a platform in the Appwrite console. - Have you added a custom domain? Make sure to configure its CNAME records. - Despite using a subdomain as the project endpoint, the error still persists. - The error message suggests adding a custom domain for increased security. Solution: Make sure to add a custom domain in the Appwrite console and configure its CNAME records correctly.
BugProg
21 Jul, 2023, 11:42

Hi ! Did you add a custom domain ?

Samuel Kings
21 Jul, 2023, 12:20

Yes I did. I've added 3 custom domains to my Appwrite console and I've configured their CNAME records but I get the same error with each of them

Samuel Kings
21 Jul, 2023, 13:16

@Steven please any help?

Binyamin
21 Jul, 2023, 13:28

Have you added your domain as platform?

Binyamin
21 Jul, 2023, 13:28

Not custom domain but a Web platform?

Samuel Kings
21 Jul, 2023, 13:47

I'm using localhost. And I've added it.

Binyamin
21 Jul, 2023, 13:50

So, in localhost usually this would happened. When you try on a Platform with domain that shares the same domain as your app, then, this message will go away.

So for example if your Appwrite is in api.domain.com then using your app on app.domain.com for example will remove this error.

Samuel Kings
21 Jul, 2023, 13:54

Alright. Thanks

Binyamin
21 Jul, 2023, 13:54

<:appwriteupvote:899677724615016528>

D5
21 Jul, 2023, 13:57

[SOLVED] Security issues despite using subdomain

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