Skip to content

CORS error in Auto-Suggest when using custom LLM provider #327

@odd256

Description

@odd256
  • obsidian version: 1.6.7

  • plugin version: 0.7.41

  • concole log:
    Access to fetch at 'https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions' from origin 'app://obsidian.md' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: 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.
    plugin:obsidian-textgenerator-plugin:1985 POST https://dashscope.aliyuncs.com/compatible-mode/v1/chat/completions net::ERR_FAILED

  • reproduce:
    I have integrated aliyun LLM service as my LLM provider, and switch on the CORS Bypass button. While text generation is functioning correctly, I encounter errors when attempting to use the Auto-Suggest feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions