[AF] [AEM-Af-901-004] error IN Publish when the Adaptive Form is submitted. | Community
Skip to main content
April 4, 2025
Solved

[AF] [AEM-Af-901-004] error IN Publish when the Adaptive Form is submitted.

  • April 4, 2025
  • 1 reply
  • 820 views

I am getting the [AF] [AEM-Af-901-004] error while trying to submit the Adaptive form in AEM 6.5 publish instace, while trying to submit the Adaptive form. In author the submit request is reaching backend.

Best answer by utkarsh_241

@user17174 : Do you still see this Issue ?

Have you Validated the CORS Setting ?

Please Note For enabling CORS, you'll need to configure the CORS settings in the OSGi configuration of AEM. The OSGi configuration is used to define the criteria for accepting CORS HTTP requests.
You can access the OSGi configuration through the AEM Web Console Configuration Manager at http://<server>:<port>/system/console/configMgr.


The key configuration properties include:
a) alloworigin and/or alloworiginregexp: Specifies the allowed origins that can access the server.

b) allowedpaths: Specifies the URL path patterns that are allowed from the specified origins.

c) supportedmethods: Indicates which HTTP methods (GET, POST, etc.) are allowed.

d) supportedheaders: Lists the headers that are allowed in CORS requests, such as "Authorization" for authenticated requests.


Reference Documentation : https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/security/develop-for-cross-origin-resource-sharing



Thanks,
Utkarsh

1 reply

Adobe Employee
April 4, 2025

@user17174 :

Few Questions :

1) What's the Submit Action Configured on the Form ?
    Are you Generating DOR on submission ?

2) Please Submit the Form by By-passing the Dispatcher / CDN layer and try to submit it with the Publisher URL.

3) Additionally, what's the error.log say for this ?

user17174Author
April 7, 2025

2) Please Submit the Form by By-passing the Dispatcher / CDN layer and try to submit it with the Publisher URL.

 

When I try to submit the Form by By-passing the Dispatcher layer it works fine. When I try to submit with Domain URL the form is not getting submitted. There is no specific error in the error.logs.

Adobe Employee
April 7, 2025

@user17174 :

Thanks for the Confirmation !
So, The Issue lies with the FQDN / Domain URL.

1) What do you see in Network tab ?

2) Any Errors in the Console logs ?

IMO, This is Somewhat Related to the CORS Policy, Please Validate.

Thanks,
Utkarsh