reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
915 stars 88 forks source link

CORS problem #111

Closed mycaule closed 2 years ago

mycaule commented 2 years ago

Describe the bug

Can't connect to Anki due to a CORS problem.

Access to XMLHttpRequest at 'http://127.0.0.1:8765/' from origin 'app://obsidian.md' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost' that is not equal to the supplied origin.

To Reproduce

Expected behavior Data should be sent to Anki application

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2022-05-31 at 08 58 21

Markdown used

# Question #card
Answer
github-actions[bot] commented 2 years ago

Thank you for taking the time to report the issue and help me to make the project better! 🙂

reuseman commented 2 years ago

@mycaul Did you do the activate step while Anki is open?

   Settings> Flashcards > Give permission > Grant permission
mycaule commented 2 years ago

thanks it works now