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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...