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

Raise an error if a remote context can't be retrieved due to cross-origin restrictions #298

Closed
lanthaler opened this issue Sep 15, 2013 · 3 comments

Comments

@lanthaler
Copy link
Member

Some sites (most notably purl.org) still don't set the CORS headers to allow cross-origin requests. The playground silently fails for documents using remote contexts that can't be accessed. It should show an error message explaining that the remote context couldn't be accessed.

/cc @dlongley @ivikash

@dlongley
Copy link
Member

I'll look into this when I can. It used to throw an error for this ... so I don't know what's changed. If you have time to put a specific test url in here that would be helpful.

@dlongley
Copy link
Member

Fixed here: digitalbazaar/jsonld.js@a62581a and ported over here: 2573021

@lanthaler
Copy link
Member Author

Thanks a lot for fixing this so quickly Dave

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

No branches or pull requests

2 participants