Questions and discussion about using ProcessMaker: user interface, running cases & functionality
User avatar
By jemiris
#824647
Hi,
I got the below error
access-control allow-origin-issue.png
access-control allow-origin-issue.png (83.64 KiB) Viewed 7913 times
please help
i have tried
Code: Select all
<?php
header('Access-Control-Allow-Origin: *');  
but not solved. please give an idea :?: :idea:
User avatar
By amosbatto
#824652
You need to add that header to the <iframe>.

In your workflow/engine/methods/cases/casesStartPage.php, change the code from:
Code: Select all
        $oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
        $oHeadPublisher->addContent('cases/casesDocuments'); //adding a html file  .html
        break;
To:
Code: Select all
 
       $oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
        $oHeadPublisher->addContent('cases/casesDocuments'); //adding a html file  .html.
        header('Access-Control-Allow-Origin: *');
        break;
Does it work now?
By fiqihpunya
#826015
amosbatto wrote: Wed May 29, 2019 9:13 pm You need to add that header to the <iframe>.

In your workflow/engine/methods/cases/casesStartPage.php, change the code from:
Code: Select all
        $oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
        $oHeadPublisher->addContent('cases/casesDocuments'); //adding a html file  .html
        break;
To:
Code: Select all
 
       $oHeadPublisher->addExtJsScript('cases/casesDocuments', false); //adding a javascript file .js
        $oHeadPublisher->addContent('cases/casesDocuments'); //adding a html file  .html.
        header('Access-Control-Allow-Origin: *');
        break;
Does it work now?
i still got error after add this header,
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]