Hi Team,
I have integrated reports/dashboards built using Helical Insight 3.0 version within my website. Now, I am getting an error page whenever I try to open the dashboard. I am seeing cross origin issue.
What could be the problem?
Thank You.
Hi Team,
I have integrated reports/dashboards built using Helical Insight 3.0 version within my website. Now, I am getting an error page whenever I try to open the dashboard. I am seeing cross origin issue.
What could be the problem?
Thank You.
Hello Anu,
This is a cross-origin issue which generally occurs when Helical Insight is on HTTP and the application in which you are embedding is in HTTPS (or vice versa). In order to remove the cross-origin issue, navigate to this below path. (the path might be a bit different if the OS is different).
C:\Program Files\Helical Insight\hi\apache-tomcat-7\webapps\hi-ee\WEB-INF
This has a file called web.xml. Open this file and it has a code snippet
<!-- 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>
-->
Remove the first and last lines of this snippet (uncomment this snippet of code). This will enable the code and will remove the cross-origin issue.
Thank You,
From Team Helical.
Even after following the above step also if the CORS cross origin issue is not resolved then please follow the below steps
For version 4.1 onwards you can follow the steps mentioned on this blog for cross origin related points