Hi! 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" }
It's too general to help me, so i dont know what to do :/
You need to use custom domain. See this docs: https://appwrite.io/docs/advanced/platform/custom-domains
Hmmm but why in chrome Works amd in Safari not with current settings?
Right, found reason under doc from your link: some browsers will treat our secure cookies as 3rd-party cookies and block them
I’ll check and get back with results
Weird...we should have a fallback mechanism in case cookies aren't available 🧐
How are you creating the session? Can you use the dev tools to inspect the network traffic and get the response headers?
Hmm actually, it's probably because window is undefined
err wait. if it's in a browser, window should work 🧐
The fallback mechanism is localStorage, right?
When I tested with Flutter Web, it worked in Chrome but not Safari
So eventually I had to buy custom domain 🥹
I followed this custom domains doc from link above, but im issuing another error. I registered DNS CNAME appwrite.slajob.dev pointing to fra.cloud.appwrite.io with dns only (without proxy). In appwrite custom domain appwrite.slajob.dev everything set correctly: Verification Status:verified, Certificate Status: generated. When i try to enter this appwrite.slajob.dev i see
In my react native app in safari still getting error: Preflight response is not successful. Status code: 421 Fetch API cannot load https://appwrite.slajob.dev/v1/account/sessions/email due to access control checks. Failed to load resource: Preflight response is not successful. Status code: 421
There is something wrong with appwrite custom domain certificate?
Now, that is another problem of Appwrite side - https://discord.com/channels/564160730845151244/1364154095006519318
Recommended threads
- How can I disable client-side account re...
Hi everyone! I’m currently building a game backend using Appwrite, and I’d like to prevent users from creating new accounts directly through the client. My go...
- Custom domain for Google Auth
Hello! I connected my custom domain to my Appwrite project, but I can't get the Google login/consent screen to show my domain instead of the Appwrite domain. I...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...