Form Tester Fails to Load Due to CORS Configuration
Error message (sample)
Browser console messages indicating CORS/preflight failures. Example (redacted):
Access to fetch at 'https://<portal-backend>/demapi/dem/demrender' from origin 'https://preview.processfactorial.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Symptoms
- The Form Tester page fails to load or cannot communicate with backend services.
- Console shows CORS/preflight errors.
Scope
This issue can occur on Customer Hosted Model installations.
Known instances
Form Tester Access
When a user navigates to the ProcessFactorial Form Tester, the application may fail to load or be unable to communicate with the backend services.
Root cause
Cross-Origin Resource Sharing (CORS) restrictions on the portal backend Function App—specifically the Form Tester URL is not allowed in the backend Function App's CORS configuration.
Resolution
- Navigate to the portal backend Function App in the appropriate resource group in the Azure Portal.
- In the left-hand navigation panel, select CORS under the API section.
- Add the Form Tester URL (
https://preview.processfactorial.com) to the list of allowed origins. - Click Save to apply the changes.
Verification checklist
- [ ] Form Tester loads without CORS errors in console
- [ ] Backend requests from Form Tester succeed (200)