Skip to content
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

WebRequestLoader does not support proxy server #612

Open
fnwinter opened this issue Oct 12, 2020 · 2 comments
Open

WebRequestLoader does not support proxy server #612

fnwinter opened this issue Oct 12, 2020 · 2 comments
Assignees

Comments

@fnwinter
Copy link

fnwinter commented Oct 12, 2020

Hello,

Currently HttpClient in WebRequestLoader is private,
And WebRequestLoader does not provide any method to support proxy server.
If the program is running behind the proxy, then there is no way to download the asset from web.
Thank you.

example code,

proxy = new WebProxy
{
	Address = new Uri(proxyUrl),
	UseDefaultCredentials = true,
};

httpClientHandler = new HttpClientHandler
{
	Proxy = proxy,
};

httpClient = new HttpClient(handler: httpClientHandler, disposeHandler: true);

@fnwinter fnwinter changed the title WebRequestLoader supports proxy server WebRequestLoader does not support proxy server Oct 12, 2020
@sivatejachigicherla
Copy link

Under proxy few web links will be blocked, so you can check if github is allowed. Try loading a gltf model from git url, if that doesn't work ask the network admin to unblock the links for the gltf.

@fnwinter
Copy link
Author

I mean that gltf library is needed to provide the method to set the proxy settings in API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants