You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access to fetch at 'https://app.khoj.dev/api/content?client=obsidian' from origin 'app://obsidian.md' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
app.khoj.dev/api/content?client=obsidian:1
Failed to load resource: net::ERR_FAILED
plugin:khoj:1437
Uncaught (in promise) TypeError: Failed to fetch
at updateContentIndex (plugin:khoj:1091:28)
at async eval (plugin:khoj:1432:39)
Hi @huachuman , where did you see the errors? Are they in the developer console, did you get a notification, or somewhere else? Can you also make sure you're on the latest obsidian plugin? To upgrade:
1. Open Community plugins tab in Obsidian settings
2. Click the Check for updates button
3. Click the Update button next to Khoj, if available
I'm not able to reproduce the error, so trying to understand how you might be encountering it.
I can confirm that I'm on the latest version of the plugin (updated 9 days ago)
The only things I see in the files on https://app.khoj.dev/settings is a single PDF I uploaded a while ago for testing. I don't see anything in my obsidian vault there. I have also confirmed that the API key matches the one I have in Obsidian.
So I was looking into this issue again. But I still can't reproduce the CORS issue you are facing. It'd be great if you can share the following details to investigate/reproduce the CORS issue you are facing:
Obsidian Version: What is the exact Obsidian version you are using?
Network Details: Are/were you by any chance using proxies, VPNs or trying to access Khoj from a firewalled/restricted network (like a university or company network)?
Describe the bug
To Reproduce
do a manual sync
Screenshots
Platform
If self-hosted
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: