Skip to main content
Level 2
Jul 16, 2024 9:26 PM UTC
Solved

Unable to submit form on publisher/dispatcher

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 

 

 
Network calls:

 

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
rishim22446870
rishim22446870Accepted solution
Adobe Employee
Jul 25, 2024 5:22 AM UTC

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.

2 replies

rishim22446870
Adobe Employee
rishim22446870Adobe EmployeeAccepted solution
Adobe Employee
Jul 25, 2024 5:22 AM UTC

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.

Translate
kautuk_sahni
Level 9
Aug 1, 2024 1:57 PM UTC

@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!

Translate
Kautuk Sahni