skevy / graphiql-app

Light, Electron-based Wrapper around GraphiQL
MIT License
2.97k stars 337 forks source link

GraphiQL completely ignores and bypasses system-wide proxy settings on macOS #197

Open varenc opened 2 years ago

varenc commented 2 years ago

I have a proxy configured system wide on macOS. Both an HTTP/HTTPS proxy and a SOCKS5 proxy:

$ networksetup -getsocksfirewallproxy Dongle2
Enabled: Yes
Server: 127.0.0.1
Port: 8989
Authenticated Proxy Enabled: 0

$ networksetup -getsecurewebproxy Dongle2
Enabled: Yes
Server: 127.0.0.1
Port: 8787
Authenticated Proxy Enabled: 0

But GraphiQL completely ignores the proxy! The older GraphQL Playground obeys the proxy, no problem. Most everything else running respects the system-wide proxy as well but for some reason GraphiQL ignores it.

Any idea why? I can do something extreme to force everything to use the proxy (VPN or something like Proxifier), but that's rather extreme. Would appreciate it if GraphiQL would respect system-wide proxy settings!

Thanks!


For context: I'm developing against an endpoint which for various reasons doesn't have introspection enable. I have the schema and introspection query response in hand. With GraphQL Playground I used the proxy to automatically intercept the introspection query and return the correct introspection schema response. But I can't get that to work with GraphiQL since it bypass the system proxy. (and it doesn't seem to let me provide a local schema either?)

StingyJack commented 1 year ago

FWIW - This is not just with MacOS, it bypasses the system proxy on Windows creating a similar problem there.