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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- general_bad_request when creating accoun...
I have created a new bug request, could anyone have a look - https://github.com/appwrite/appwrite/issues/11908?
- Cannot use custom SMTP for messaging (SM...
Hey there! I'm on Appwrite Self-hosted 1.9.0. I've never used the messaging feature before, always sent emails through functions or a custom backend, but I'v...