====== External web access used by N4V server ====== Source : [[https://support.need4viz.com/kb/faq.php?id=54|Support Need4Viz — KB #54]] — Category : 4. Global N4V configuration ==== Symptom ==== * %%When printing a Webi report in PDF/XLS format, some N4V components are not correctly printed (a puzzle may appear) or there is a very long delay to print the report.%% * When using Google Address component (geolocation), the component is not displayed correctly. ==== Environment ==== * Windows & Linux Server * Need4Viz : all versions. Fixed in 2022.0.1 version. ==== Resolution ==== Depending on the action and the N4V components, the N4V server may need to access internet. When printing a Webi report containing the following N4V components : * Simple Sankey * %%Google Maps Lat/Lon%% * Google Maps Geocoding * Google Heatmap * OpenStreetMap Chart Pie When displaying a Webi report containing the following N4V component : * Google Maps Geocoding The URL accessed from the N4V server are the following : * [[https://www.google.com/jsapi|https://www.google.com/jsapi]] * [[https://maps.googleapis.com|https://*.googleapis.com]] * [[https://www.gstatic.com|https://*.gstatic.com]] * [[https://a.tile.openstreetmap.org|https://*.openstreetmap.org]] **//A. If no external web access is allowed from the N4V server//** Set to **true** the **NoExternalWebAccessAllowed** variable in the **%%~Need4Viz\nodejs\node_modules\custom_element\ce_libs\config.js%%** file, so a blank frame with unprintable message will be generated instead of the expected render. **//B. If external web access is allowed through a proxy from the N4V server//** Set in the **%%~Need4Viz\nodejs\node_modules\custom_element\ce_libs\config.js%%** file the **ProxyHost** variable (only proxy without authentication can be used). **//C. If external web access is allowed directly from the N4V server//** You have nothing to do. **Notice :** After each update of the config.js file, follow these steps to make the changes effective : - Open a PowerShell command window as local administror of the server - Change directory to **//%%~Need4Viz_folder_installation/Scripts%%// %%/%%** - Run the **%%Start_Need4Viz.ps1%%** command