npm install told me there are 2 high severity vulnerabilities.
I found obsidian is outdated (older than 1.0.0), so I updated it. Then, the vulnerabilities have gone.
Avoid the CORS issue
Sometimes, pasting a URL causes the following error:
Access to fetch at 'https://genius.com/25251' 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.
So I replaced fetch() in scrapper.ts with Obsidian API's requestUrl.
"Similar to fetch(), request a URL using HTTP/HTTPS, without any CORS restrictions."
Hi, thank you for making this awesome plugin!
Remove vulnerabilities
npm install
told me there are 2 high severity vulnerabilities. I foundobsidian
is outdated (older than1.0.0
), so I updated it. Then, the vulnerabilities have gone.Avoid the CORS issue
Sometimes, pasting a URL causes the following error:
So I replaced
fetch()
inscrapper.ts
with Obsidian API's requestUrl.After this change, the error message's gone.