Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: amosbatto

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 2519 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,
Task doesnt have any users.

Amosbatto: One more thing if you can help me with.[…]

Just guide me to implement this?

Hi, I have a text control (rfq_segment) and I wan[…]

Genial!!! gracias. :D i need to translate an[…]