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 7918 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,

Web3 development encompasses creating decentralize[…]

The Upland Clone Script, offered by Dappsfirm, rep[…]

Dappsfirm offers a bet365 clone script that mirror[…]

🚀 Tauchen Sie mit Immediate Alora AI in die Welt d[…]