community
cancel
Showing results for 
Search instead for 
Did you mean: 

Dev Space

Customize & extend the power of Alteryx. SDKs, APIs, custom tools, and more!

http calls through proxy from javascript

Hello.

We are building a custom tool for alteryx and noticed a strange thing.

When proxy is set up in windows as described here https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Change-proxy-connection-in-download-to...

HTTP calls from javascript are ignoring that setting and still go directly to requested endpoint.

Javascript calls are with jQuery like '$.get("http://msn.com")'

Can you confirm that built in javascript engine uses the same settings?

 

My easy way to reproduce is:

1. Set windows . proxy settings to non-existing proxy like '127.0.0.1:3128'

2. Open browser and make sure web requests stopped working - goto "http://msn.com" and get Proxy not responding error.

3. Open any tool that uses ajax requests to remote services from GUI
4. $.get('http://msn.com') still works from javascript that means it ignores proxy setting.

 

Thanks.

Alteryx
Alteryx

Hi @antonsuslov - can you describe what you're trying to build where you're running into this issue? Are you building a tool using the HTML GUI SDK for the frontend? Thanks!

Yes, it is a tool built with HTML GUI SDK for the frontend. 
Let's say it has 2 inputs for user credentials and after they are entered, we make http call to REST service located on the internet to read a list of items which are then populated to the tool's dropdown control.

 

It works when the REST service address is available from user machine without proxies but stops working when the address is available through corporate proxy only. Even if this proxy is configured in windows and domain name is available in other browsers.