biopragmatics/curies.rs

Npm example doesn't work out of box due to CORS

Opened this issue · 2 comments

Using the example file right from the docs, I get this error:

https://biopragmatics.github.io/curies.rs/use_javascript.html#-in-bare-html-files

web.js:883 Mixed Content: The page at 'https://jsfiddle.net/' was loaded over HTTPS, but requested an insecure resource 'http://purl.obolibrary.org/meta/obo_context.jsonld'. This request has been blocked; the content must be served over HTTPS.

https://jsfiddle.net/3ku7c1m6/

I guess it's making a request to the OBO jsonld for prefixes and it's not https so it's throwing an error. I would've thought everything needed for lookup would've been bundled in the package and no network requests would be needed, but I guess it'd be too big to do that.

Hi @vincerubinetti thanks for the notice, we actually already fixed this issue by using only HTTPS URLs for the functions that imports converters, but we still did not published a new release yet

We plan to publish a new one soon that should fix this error

#6 also related, fixes built in URLs