Expand my Community achievements bar.

Unable to submit form on publisher/dispatcher

Avatar

Level 2

Hi All,

We are facing one issue where not able to submit form on a publisher/dispatcher. However, on author it's working absolutely fine.

 

Console error: 

 

AEM cloud version 2024.6.16799.20240614T073455Z 

 

Screenshot 2024-07-16 at 5.24.06 PM.png


Network calls:

Screenshot 2024-07-16 at 5.24.47 PM.png

Dispatcher Configs: 

# AEM Forms specific filters
# to allow AF specific endpoints for prefill, submit and sign
/0032 { /type "allow" /path "/content/forms/af/*" /method "POST" /selectors '(submit|internalsubmit|agreement|signSubmit|prefilldata|save|analyticsconfigparser)' /extension '(jsp|json)' }

Also, tried adding anonymous user to some forms group still no luck.

 

Appreciate your help.

2 Replies

Avatar

Employee

The issue could be related to the CORS setup and might be the reason for the 204 response code. Please check if you have a custom com.adobe.granite.cors.impl.CORSPolicyImpl configuration

Additionally, you can enable debug logging on com.adobe.granite.cors to check if it is denying the request.

Avatar

Administrator

@Gatsby Did you find the suggestions from users helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni