Expand my Community achievements bar.

SOLVED

CORS Error while integrating HTML form with Adobe Workfront.

Avatar

Level 2

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 Accepted Solution

Avatar

Correct answer by
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 

View solution in original post

2 Replies

Avatar

Correct answer by
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 2

Thank you for the response, @monicacardoso 

 

Regards,

Alka Sharma