-
Notifications
You must be signed in to change notification settings - Fork 265
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
Github CORS requirement clarification #106
Comments
You can do mist everything over the rest protocol, its just that its non standard buggy and really really slow for clones. Also for any sizable repo, you'd hit the rate limit long before finishing a full clone. -----Original Message----- I've been asking Github to enable CORS headers to their HTTPS git servers, but they've refused to do it. This means that a browser can never clone from github because the browser will disallow XHR requests to the domain. |
Ah ok, this does seem like a problem. Did the github team give any specific pushback on why they would not enable CORS? |
No. I've never gotten a reason of why they won't do it. I either get no On Thu, Sep 18, 2014 at 12:58 PM, aaron [email protected] wrote:
|
I sent an email and filed an issue on Isaac's unofficial github issue tracker isaacs/github#263 |
Is this still an issue? |
As far as I know, they never responded. The joys of putting all our open source ecosystem in the hands of a closed-source company. Maybe we should reach out again now that they are part of Microsoft? Anyone have good contacts there? |
try using no-cors fetch instead of XHR. It might not work do to restrictions though. |
What is no-cors fetch? |
Fetch is a new JavaScript function that supersedes XHR that has 2 modes: cors and no-cors. |
I thought no-cors mode didn't allow reading the response. That's pretty essential for this to work.
|
I may have misunderstood, but I think this would be limited to read-only anyway since CORS does not allow credentials for https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials Are you are asking them to echo the neat module btw |
Credentials would be needed for private repos or pushing changes. But currently I can't even read public repos without CORS enabled on their end. |
I am trying to understand if the lack of CORS support is limiting, if you are able to use the raw git data API. I guess this just necessitates the
js-github
adapter as opposed to using the normal git communication mechanisms. is it otherwise feature complete? Does this include pushing commits back to github?The text was updated successfully, but these errors were encountered: