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

Being the best in the started business is the obje[…]

Winzo is a popular and unique game on the mobile p[…]

Cannot create process using templets

Real details. The problem was solved by effect!

However, it is essential to use it responsibly and[…]