Leiste mit Community-Erfolgen erweitern.

Don’t miss the Workfront AMA: System Smarts & Strategic Starts! Ask your questions about keeping Workfront running smoothly, planning enhancements, reporting, or adoption, and get practical insights from Adobe experts.
GELÖST

CORS Error while integrating HTML form with Adobe Workfront.

Avatar

Level 3

Hi all,

 

I am trying to integrate an HTML form with Adobe Workfront so that after submitting that form, a task or project can be created. But I am getting a CORS error. How can we handle this error? As per documentation, support has been ended for JSONP, and adding domains to the allowlist for CORS is supported only for customers who were using JSONP prior to August 1, 2018.

Please help me to resolve this issue.

 

Regards,

Alksh

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Employee

Hi @Alkash4

 

Thank you for your question! CORS (Cross-Origin Resource Sharing) errors occur when your browser blocks requests from your HTML form because the origin (domain) of your form does not match the origin of the Workfront API server.

 

You could potentially approach a solution using Workfront Fusion scenario:

 

1) Trigger the scenario when new forms are submitted (you could use Google Forms or a similar platform to store the form itself) 
2) Create or update the task or project in Workfront with the necessary data mapped from the previous module 

 

https://experienceleague.adobe.com/en/docs/workfront-fusion/using/references/apps-and-their-modules/... 

 

https://experienceleague.adobe.com/en/docs/workfront-fusion/using/references/apps-and-their-modules/... 

 

This approach abstracts CORS handling, as Fusion handles the API interaction. 

 

- Monica 

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Korrekte Antwort von
Employee

Hi @Alkash4

 

Thank you for your question! CORS (Cross-Origin Resource Sharing) errors occur when your browser blocks requests from your HTML form because the origin (domain) of your form does not match the origin of the Workfront API server.

 

You could potentially approach a solution using Workfront Fusion scenario:

 

1) Trigger the scenario when new forms are submitted (you could use Google Forms or a similar platform to store the form itself) 
2) Create or update the task or project in Workfront with the necessary data mapped from the previous module 

 

https://experienceleague.adobe.com/en/docs/workfront-fusion/using/references/apps-and-their-modules/... 

 

https://experienceleague.adobe.com/en/docs/workfront-fusion/using/references/apps-and-their-modules/... 

 

This approach abstracts CORS handling, as Fusion handles the API interaction. 

 

- Monica 

Avatar

Level 3

Thank you for the response, @monicacardoso 

 

Regards,

Alka Sharma