Test Connection is not working in the data source page after integrating Helical Insight into my application

Hi Team,

When I integrate Helical Insight into my application, some of the functionalities are not working. For Example, when I am clicking on the “Test Connection” in the data sources page it is not working. Everything is working fine when I use Helical Insight directly. What is the problem?

Hello Harika,

The problem here you are facing because cross-origin is not enabled. To solve this problem follow the below steps:
A. Open web.xml which is present on the following path:

Location:: <path to “Helical Insight”>\hi\apache-tomcat-7\webapps\hi-ee\WEB-INF

B. Uncomment the cross-origin code which is present on web.xml.

<!-- Enable this filter to use cross-origin

<filter>

    <filter-name>cross-origin</filter-name>

    <filter-class>org.eclipse.jetty.servlets.CrossOriginFilter</filter-class>

</filter>

<filter-mapping>

    <filter-name>cross-origin</filter-name>

    <url-pattern>/*</url-pattern>

</filter-mapping>

–>
C. Now open bootstrap.js which is on the following path:

Location:: <path to “Helical Insight”>\hi\apache-tomcat-7\webapps\hi-ee\js\vendors

D. Search for phrase “window.parent.location” and change it to “window.location”.

E. Save the file and refresh application.