Closed
Conversation
Member
Author
|
Spec: https://github.com/berezovskyi/corsherdf#spec Example resolving resources from CM RefImpl server (no fallback request needed) and OSLC CM vocab (fallback to the proxy) and no security CORS disabled: |
Member
Author
Member
Author
|
also cc @axelreichwein in case you needed a proxy like this too and we can work on refining a common RDF proxy spec |
b578637 to
dcbb860
Compare
Member
Author
|
Partly solved in #36 by using https://cors-anywhere.com/ My CORSheRDF project is a bit far from being ready to be exposed to all the abuse such proxies typically get. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

After thinking about oslc-op/oslc-specs#458, I tried to get OSLC Browser to work without ignoring CORS. I had to do a few tricky steps but still did not manage to do it because there is limit to how many servers I can update.
First, I had to add CORS filters to oslc-op/refimpl@66527f6. Now, this is not possible to do on an app you don't have code access to but I have some Nginx and Apache HTTPD snippets to duct tape it.
Next, I hit the problem of OSLC CM vocab lacking CORS headers and, finally, I think I would have hit it with DCTerms. I still think it's a critical issue to address. I will keep suggesting OSLC to specify it properly and I am planning to suggest https://archivo.dbpedia.org/ to add ontology "fetchability" in a browser as a 5th star.
Now, I realised that for OSLC Browser to work, we absolutely need a proxy. As opposed to Jazz approach, I am suggesting to:
This PR adds support for a configurable fallback proxy.
OSLC CORS will be fixed in oslc-op/website-content-negotiation#8