Skip to content
Back

Custom domain issue

  • 0
  • React Native
  • Web
  • Cloud
Slawke
28 Apr, 2025, 20:36

Hello following another post I'm creating dedicated post according to my project ID: 67ffbd800010958ae104 I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari console: { "message": "User (role: guests) missing scope (account)", "code": 401, "type": "general_unauthorized_scope", "version": "1.6.2" }

So i followed doc to create custom domain: https://appwrite.io/docs/advanced/platform/custom-domains

I created not proxied CNAME pointing to fra.cloud.appwrite.io then I created custom domain in appwrite: appwrite.slajob.dev. custom domain is verified and certificate generated. In my app i changed API URL from https://cloud.appwrite.io/v1 to https://appwrite.slajob.dev/v1

But now it's not working on every browser. When i enter https://appwrite.slajob.dev/ via browser i see: net::ERR_CERT_COMMON_NAME_INVALID Subject: t.sni-820-default.ssl.fastly.net

Issuer: Certainly Intermediate R1

Expires on: May 18, 2025

Current date: Apr 28, 2025 and begin certificate[...]

In my app in chrome console i see: POST https://appwrite.slajob.dev/v1/account/sessions/email net::ERR_CERT_COMMON_NAME_INVALID Sign in error: AppwriteException: Failed to fetch at Object.<anonymous> (https://clarity.slajob.dev/_expo/static/js/web/entry-dd20b5ec8e4897aab10190d07743e502.js:790:7776) at Generator.throw (<anonymous>) at s (https://clarity.slajob.dev/_expo/static/js/web/entry-dd20b5ec8e4897aab10190d07743e502.js:790:1181)

And in safari: [Error] Preflight response is not successful. Status code: 421 [Error] Fetch API cannot load https://appwrite.slajob.dev/v1/account/sessions/email due to access control checks. [Error] Failed to load resource: Preflight response is not successful. Status code: 421 (email, line 0) [Error] Sign in error: – AppwriteException: Load failed AppwriteException: Load failed (anonymous function) (entry-dd20b5ec8e4897aab10190d07743e502.js:1109:625)

Please help me fix that issue 🫣

TL;DR
Developers are experiencing login issues on Safari due to a missing scope error. They tried to fix this by setting up a custom domain but faced a certificate error. The solution might involve correcting the certificate settings for the custom domain to resolve the issue with login on different browsers.
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