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 getting CORS error when i use the sdk, both node-appwrite as client appwrite sdk.
All the references online can solve cors issue by adding a platform I've added every possible platform option setting i could think off, but i think the problem is that obsidian is an electron app. i tried to add origins localhost, *, my ip, obsidian.md, but none work
if i simply do this, but it applies to any function:
const user = await account.create({
userId: ID.unique(),
email: "email@example.com",
password: "12345678",
});
then obsidian first does a pre-flight check from origin 'app://obsidian.md' which gets accepted and then another request from origin 'app://localhost' which gets blocked
if i use obsidian's requestUrl (they expose this to prevent cors issues like this), then all my requests succeed, so i know it's not a database permission thing. However, especially now that im trying to implement storage which i find a bit more difficult, i would really like to fix this so i can use the sdk
Sorry if this is duplicate, i found https://appwrite.io/threads/1117832789891481750 which talks about electron app but that doesnt provide a solution for me
ps: I've been using Appwrite for a few months now. I know that does really not mean much at all, but i got it working before in other projects
Recommended threads
- How to use dart workspaces to deploy a f...
Hello, I'm developing a Flutter application and I would like to leverage dart pub workspaces to deploy a function with a dart runtime as advertised here : http...
- Migration from Cloud to Self-Hosted not ...
Hello Appwrite Community, I've got the problem, that when I try to migrate my Appwrite Project from the cloud to my self-hosted Appwrite, that an API Key is mi...
- I can't migrate my project from Appwrite...
I'm having an issue migrating my Appwrite project to a self-hosted instance. The problem is that I've exceeded my read rate limit (or database read limit), so I...