Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: CORS Error in Pentaho 7.1 CE

  1. #1
    Join Date
    Aug 2013
    Posts
    100

    Default CORS Error in Pentaho 7.1 CE

    I am trying to integrate Pentaho 7.1 CE version with some web application and there i have to access the pentaho context.For Authentication purpose here i am using cookies based api and passing the parameter .During this i am getting the below mentioned error:

    Code:
    XMLHttpRequest cannot load http://localhost:8083/pentaho/j_spring_security_check. Redirect from 'http://localhost:8083/pentaho/j_spring_security_check' to 'http://localhost:8083/pentaho/Home;jsessionid=E0B8FFAFE57EDEC09DB8229457FAA7B4' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
    I have already enable the CORS in pentaho and modified web.xml file located at pentaho-server\tomcat\conf:
    Code:
    <filter>
      <filter-name>CorsFilter</filter-name>
      <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
      <init-param>
        <param-name>cors.allowed.origins</param-name>
        <param-value>*</param-value>
      </init-param>
      <init-param>
        <param-name>cors.allowed.methods</param-name>
        <param-value>GET,POST,HEAD,OPTIONS,PUT</param-value>
      </init-param>
      <init-param>
        <param-name>cors.allowed.headers</param-name>
        <param-value>Content-Type,X-Requested-With,accept,Origin,Access-Control-Allow-Origin,Access-Control-Request-Method,Access-Control-Request-Headers</param-value>
      </init-param>
      <init-param>
        <param-name>cors.exposed.headers</param-name>
        <param-value>Access-Control-Allow-Origin,Access-Control-Allow-Credentials</param-value>
      </init-param>
      <init-param>
        <param-name>cors.support.credentials</param-name>
        <param-value>true</param-value>
      </init-param>
      <init-param>
        <param-name>cors.preflight.maxage</param-name>
        <param-value>10</param-value>
      </init-param>
    </filter>
    <filter-mapping>
      <filter-name>CorsFilter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
    Can any one suggest me what i am missing here ..Any idea how i can solved this problem:
    Last edited by Sumit_Bansal; 09-10-2017 at 03:59 PM.

  2. #2
    Join Date
    Aug 2013
    Posts
    100

    Default

    Anyone having any idea about what i am missing here ..Please guide me

  3. #3
    Join Date
    Sep 2017
    Posts
    1

    Default

    Did you find any solution to solve the problem? Because i am same situation

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.