How to resolve cross-origin issues with N4V for Webi graphs not displaying

Anonymised summary of support ticket #596382 (2025-10-15)

Symptom

Graphs in Web Intelligence documents using N4V extensions do not display for users accessing SAP BusinessObjects via the web application, while they work correctly when accessing directly on the server. Browser console shows errors related to missing or blocked static resources (e.g., jQuery).

Environment

N4V for Webi installed on the same Tomcat server as SAP BusinessObjects Web Intelligence. Users access via web application URL (HTTP or HTTPS).

Resolution

  1. Check the config.js file in the N4V webapp (typically located in the custom_element/ce_libs directory) for the URLNodeJSServer variable.
  2. Ensure the URL defined in config.js matches the URL used to access the SAP BusinessObjects Web Intelligence portal (avoid cross-origin requests).
  3. Update the URLNodeJSServer value in config.js to match the portal access URL (e.g., var URLNodeJSServer = "https://[portal-url]";).
  4. Restart the N4V services (e.g., Tomcat) to apply changes.

Other resolution

Cross-origin requests (CORS) are blocked by browsers when resources are loaded from different origins (protocol, domain, or port). Ensure consistent URLs (HTTP/HTTPS) and domains between the portal and N4V webapp.