-
-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS again #508
Comments
Update: turns out it wasn't a CORS issue, but a server configuration issue. Somehow my reverse proxy stopped working, causing the proxy to display a 502, which on its turn doesn't support CORS, obviously. But it's still a problem:
Bottomline: this shouldn't ever happen. Especially since CouchDB has a tendency to forget CORS settings at some point for some reason. Awful behaviour, but that's why CORS issues can "suddenly" pop up. |
Thanks for pointing that out! Please allow me a slightly longer answer. Yes, this is a deep-rooted problem with a history. I have summarised it here.
I completely understand your frustration. Unfortunately, this is due to the behaviour of the CORS errors. We cannot observe anything, not even their response code. A rather helpless situation. This is because we have been identified as something potentially and possibly evil.
As you mentioned, there is a way to actually send a request via the Obsidian API, which is not a web standard. However, there are some reasons to avoid using them from this plug-in:
So, they are already working hard for us. We are just in on a bit of a niche. Hence, using them can only be an optional feature with many downsides. And indeed has been in the past. The feature requires giving up I think we can see the same bad omen for the problem the situation caused, with my explanation, and the other issues involved. This option was finally removed in earlier releases due to "complication of the configuration dialogue" and "synchronisation problems". This was essentially an edge case feature, but because it promoted ease of use, it caused other problems that resulted from it, complicating the configuration and the situation. I have to swallow my shame, but you know the nightmare. As you know, there are too many edge cases to simplify things. I wish I could express that my position and perspective are the same as yours. ...... I'm one of the contributors, but I'm also one of the users; I've been using it the longest, and I'm very dependent on it. (Ah, maybe that's why I'm so used to the terrible UI. Now I realise that I am starving for the new flavours). If you have a good idea of how to implement this in the setting dialogue, please let me know. It could be quite helpful, even if it is just an image. (Using Obsidian's API cannot be enabled from the interface and is automatically disabled, but still works). |
Abstract
It's doing CORS errors again. The server is configured correctly though, this time.
Expected behaviour
Actually happened
Reproducing procedure
Report from the LiveSync
For more information, please refer to Making the report.
Report from hatch
Obsidian debug info
Debug info
Plug-in log
We can see the log by tapping the Document box icon. If you noticed something suspicious, please let me know.
Note: Please enable
Verbose Log
. For detail, refer to Logging, please.Plug-in log
Network log
Screenshots
Bog standard configuration in CouchDB webUI. This is done with the UI, I did not input these values manually at any point.
Result in inspector:
The text was updated successfully, but these errors were encountered: