I have created a widget which reads the data from database table using Ajax dojo.xhrGet() function to retrieve data in JSON format from a php script.
In Internet Explorer, once I run the widget, it gives me an warning dialog "The page is accessing information that is not under its control. This poses a security risk. Do you want to continue?" when I click Yes, the widget works fine, if no is clicked it fails.
In other browsers, I get the error, with the below message in console
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://..../GlobalSearch.php?token=5440%20Fulton%20Industrial. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
I want to know how can I use http PROXY on node.js.
I am testing the widget on
http://[computerName]:3344/webappviewer/?config=sample-configs/config-demo.json
Any help will be appreciated.
Thanks
Qazi Iqbal