Policy Automation for B2C Service

Get Involved. Join the Conversation.

Topic

    Eric Muiruir
    OPA Interview not Refreshing
    Topic posted December 18, 2018 by Eric MuiruirRed Ribbon: 250+ Points 
    178 Views, 10 Comments
    Title:
    OPA Interview not Refreshing
    Summary:
    OPA Interview not Refreshing to the first Interview Screen once you hit the SUBMIT AND REDIRECT Button
    Content:

    Hi, We have successfully deployed a Car Import\Tax Duty Calculator developed using OPA to the Customer Portal.

    The interview has The first screen that gets populated with Users Email Address, First and Last Name, then by clicking the next button you access the second screen where you select the Vehicle Details you wish to calculate Import duty for.

    Once done, clicking the Submit button shows you the Tax or Duty Tabulation.

    Fro here you can click the Next button to access the Thank you page, from where one can click a button to Calculate Duty for another Car Model of their choice.

    The challenge we have here is that once the user clicks this button, instead of the Interview reloading the very first screen, it shows an error. "kenya-revenue-authority--tst1.custhelp.com refused to connect."

    I have attached the same scenario we are experiencing.

    Anybody who might have gone through the same issue on the Customer Portal?

    Version:
    18C
    Image:

    Comment

     

    • Eric Muiruir
    • Aparajit Malli

      Hi Eric,

              We have the same issue - were you able to fix this?

       

      • Eric Muiruir
        Hello Aparajit,
         
        Kindly check that you have <? header('X-Frame-Options: GOFORIT'); ?> in the standard.php file, you also need to include this inside your opa widgets view.php file.
         
        When you add it to the view.php it needs to be below the meta data.
        So, like this.
        <rn:meta controller_path="custom/opa/OPAWidget" js_path="custom/opa/OPAWidget" base_css="custom/opa/OPAWidget" presentation_css="widgetCss/OPAWidget.css"/>
         
        <? header('X-Frame-Options: GOFORIT'); ?>
        <? if ($this->data['error_text']): ?>

        Check to see the issue in Development Area after adding this code to your view.php?

        Make sure you stage and promote the change that you make in the OPA widget.


        Regards,

        Eric Kiruthi

        • Aparajit Malli

          Hi Eric,

               I tried the header additions you suggested but it does not seem to be working. I have attached the view.php (opa widget) and the standard.php template file.

          Would you be able to look at it and let me know if I made a mistake?

    • Eric Muiruir

      Hi,

      After you made the changes, did you log into the Admin panel of your customer portal and deploy the changes?

      Kindly advice.

       

       

      Regards

      Eric Kiruthi

      • Eric Muiruir

        Hi,

        Also in your view.php file, kindly add the changes as i have highlighted in yellow in the screenshot i shared.

         

        Regards

        Eric Kiruthi

    • Aparajit Malli

      No, I haven't.. I thought I had validate if this is working in Development mode..

      In Development mode, it doesn't seem to be working. So, should I stage/promote it?

    • Eric Muiruir

      Hi,

      You have to stage and promote the changes that you make in the OPA widget. If not, then the only place you can test this is within ci/admin Dashboard and the then Development Area by clicking the View Development Area and then navigating to the page that you wish to test.

       

      Regards

      Eric Kiruthi

    • Aparajit Malli

      No luck! I staged/promoted and got the same issue  - a blank window you like got in the screenshot you attached.

      In the browser (I am using Chrome browser) console, this error is shown..

      Refused to display 'https://***.custhelp.com/app/FA/details/fa_id/150' in a frame because an ancestor violates the following Content Security Policy directive: "frame-ancestors DENY"

       

    • Eric Muiruir

      Hi,

      Kindly reach out to Oracle Support so they can check if there is indeed another issue that is causing this.

       

      Regards

      Eric Kiruthi