-
Notifications
You must be signed in to change notification settings - Fork 78
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
sockets: simple requests working but not MC #66
Comments
So with the kludge works, but only on the 4th try (fetch without and with proxy followed by xml request without and with proxy): Using the "cors-anywhere" proxy the Fetch API works fine though (and we prefer it because it supports partial results): |
Hi Vanessa, is this the same bug? It occurred when I tried to browse the inbox repository using Monticello:
|
HTTPS not working either. :-(
|
Not exactly the same ... we need to allow CORS on source.squeak.org, and we need MC to use https not http. The https://crossorigin.me/ proxy does not exist anymore We could try to change it or set up our own proxy, but in general, JavaScript needs CORS to access other servers. |
New proxy sounds straightforward. I have never dealt with this stuff, but this one should be up and might work? https://cors-anywhere.herokuapp.com/ |
That is the same proxy as in my comment above on Jun 28, 2016 - and that second link does indeed work still 😄 I just edited it to use the current repo name. |
Oh, actually I did not try MC, sorry. |
Just wanted to note that HTTPS connections still do not work reliably, for example, |
@LinqLover interesting, why do you think that missing primitive is causing the issue? Happy to debug this together some time next week if you like. |
@fniephaus The missing primitive was only a wild guess because |
I don't mind if you watch me debug this. It's likely you'll learn something... I will probably do, too. 😉 Let's discuss "offline"... |
This is working fine:
HTTPSocket httpGet: 'http://source.squeak.org:80/squeak45/
but this fails:
HTTPSocket httpGet: 'http://source.squeak.org/squeak45/' args: nil user: '' passwd: ''
This is with the https://crossorigin.me/ proxy and using the
fetch
API.The proxy does not grant the requested
Access-Control-Request-Headers: authorization
, it sends backAccess-Control-Allow-Headers: Content-Type
instead. This appears to be ignored byXMLHttpRequest
butfetch
reports an error.The text was updated successfully, but these errors were encountered: