[SOLVED]: Disabling services for client SDK's also disables the services for `node-appwrite`
- 0
- Self Hosted
- Auth
- Cloud
Hey, is this behaviour correct? when disabling services for client SDK's it also disables the services for node-appwrite?
in the settings description says this:
Choose services you wish to enable or disable for the client API. When disabled, the services are not accessible to client SDKs but remain accessible to server SDKs.
thanks in advance
When disabling services for client SDK's it also disables the services for node-appwrite?
- Nope, services stay accessible to server sdks.
node-appwriteis a server side sdk.
so it's disabling it.. let me check the error
ACCOUNT ERROR: The requested service is disabled. You can enable the service from the Appwrite console.
Did you do .setKey on the Client?
yes,
but then I use the session like so
so it respects the permissions and not act like super admin
afaik, session falls on the client side.
it should work if you only use setKey.
can you check if it works with only Key.
ok I get it now. It disables the session with appwrite web sdk
yes the key works as I can loggin and set the cookie but the server kicks me out coz the middleware is using the session
Use appwrite for client side.
from the description I understood that it disables access thru the web sdk but the keeps the server side even with session.
can't do that. project requirements states the backend should be not accessible from the web
but that's fine, the workaround is just enable them for now as the url is never visible to the client
Thanks for the clarification 🙂
no worries.
Pl. mark the title as [SOLVED] if the issue is resolved.
Happy Appwriting :appwritecheers:.
[SOLVED]: Disabling services for client SDK's also disables the services for node-appwrite
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Appwrite 1.9.0 doctor fails tho database...
So i was testing in a local environment the upgrade for 1.9.0, and after getting everything into a running state, i checked the logs that shows : ``` └── Cre...