Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vincerubinetti opened this issue Mar 22, 2024 · 2 comments
Open

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

vincerubinetti opened this issue Mar 22, 2024 · 2 comments

Comments

@vincerubinetti
Copy link

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.

@vemonet
Copy link
Collaborator

vemonet commented Apr 2, 2024

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

@cthoyt
Copy link
Member

cthoyt commented Apr 3, 2024

#6 also related, fixes built in URLs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants