aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-06 15:35:07 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-06 15:35:07 +0200
commit976b4992c10e4f5f5a647b748fc0a5c9f7835ebb (patch)
treeb2d05a75855eecb35726817edda7390fe6ef2e65 /src
parent4d59f78439f8fba6dea2fe7b2b132800529d279e (diff)
downloadollama-logseq-976b4992c10e4f5f5a647b748fc0a5c9f7835ebb.tar.xz
ollama-logseq-976b4992c10e4f5f5a647b748fc0a5c9f7835ebb.zip
Disabled cors
Diffstat (limited to 'src')
-rw-r--r--src/ollama.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ollama.tsx b/src/ollama.tsx
index f6e9b97..f43df28 100644
--- a/src/ollama.tsx
+++ b/src/ollama.tsx
@@ -74,6 +74,7 @@ async function promptLLM(prompt: string) {
try {
const response = await fetch(`http://${logseq.settings.host}/api/generate`, {
method: 'POST',
+ mode: 'no-cors',
headers: {
'Content-Type': 'application/json',
},