Using JGit with browser JVM hits CORS restriction #85
Unanswered
reportmill
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Searching for this question I found some interesting posts
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a unique use case - I'm trying to use JGit in the browser (using CheerpJ JVM) to clone a GitHub repository, and it fails to do a repository clone due to CORS restriction:
I suppose I really need GitHub to add the allow-origin response header, which I think they do in the GitHub API. Or I need to somehow make JGit use GitHub API instead of Git-Protocol. But otherwise I don't think I can use JGit for clone, push or fetch.
I'm using JGit 5.13 because I'm temporarily limited to Java 8, but I don't think that will matter. Any ideas?
(My use case is a free IDE for the browser, SnapCode ).
Beta Was this translation helpful? Give feedback.
All reactions