Adobe AEM Forms Post Failed in dispatcher | Community
Skip to main content
mohamedn4455443
January 2, 2022
Solved

Adobe AEM Forms Post Failed in dispatcher

  • January 2, 2022
  • 2 replies
  • 4850 views

My server is Working correctly in 2 nodes and when i try to submit from dispatcher url, I got the below error: POST dispatcher/content/forms/af/generalformcs/generalform1/jcr:content/guideContainer/rootPanel/items/panel/items/summary.process.jsp 403 (Forbidden)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by mohamedn4455443

Solved by Allowing Sticky sessions

 

open dispatcher.any, and add the below lines:

 

#Allowing Sticky sessions
/stickyConnectionsFor "/content"

/stickyConnections {
/paths {
"/"
}
}

2 replies

Mayank_Tiwari
Adobe Employee
Adobe Employee
January 2, 2022

Please configure the following and check the issue again.

Configure Dispatcher

Dispatcher is caching and load balancing tool for AEM. AEM Dispatcher also helps to protect AEM server from attacks. You can increase the security of your AEM instance by using the Dispatcher in conjunction with an enterprise-class web server. If you use Dispatcher, then perform the following configurations for AEM Forms:

  1. Configure access for AEM Forms:

    Open the dispatcher.any file for editing. Navigate to the filter section and add the following filter to the filter section:

    /0025 { /type "allow" /glob "* /bin/xfaforms/submitaction*" } # to enable AEM Forms submission

    Save and Close the file. For detailed information about filters, see Dispatcher documentation.

  2. Configure the referrer filter service:

    Log in to the Apache Felix configuration manager as an administrator. The Default URL of the configuration manager is https://[server]:[port_number]/system/console/configMgr. In the Configurations menu, select the Apache Sling Referrer Filter option. In the Allow Hosts field, enter host name of the dispatcher to allow it as a referrer and click Save. The format of the entry is https://[server]:[port].

mohamedn4455443
January 2, 2022

still same issue, kindly find the below filter detailes:

# Deny everything first and then allow specific entries
/0001 { /type "deny" /glob "*" }
/0002 { /type "allow" /method "POST" /url "/content/[.]*.form.html" }
/0003 { /type "allow" /glob "GET /libs/granite/csrf/token.json*" }
# Open consoles
/0011 { /type "allow" /url "/admin/*" } # allow servlet engine admin
/0012 { /type "allow" /url "/crx/*" } # allow content repository
/0013 { /type "allow" /url "/system/*" } # allow OSGi console

# Allow non-public content directories
/0021 { /type "allow" /url "/apps/*" } # allow apps access
/0022 { /type "allow" /url "/bin/*" }
/0023 { /type "allow" /url "/content*" } # disable this rule to allow mapped content only

/0024 { /type "allow" /url "/libs/*" }
/0025 { /type "deny" /url "/libs/shindig/proxy*" } # if you enable /libs close access to proxy

/0026 { /type "allow" /url "/home/*" }
/0027 { /type "allow" /url "/tmp/*" }
/0028 { /type "allow" /url "/var/*" }
/0029 { /type "allow" /url "/etc/*" }
/0030 { /type "allow" /url "/etc.clientlibs/*" }
/0031 { /type "allow" /url "/content/*" }
/0032 { /type "allow" /url "/libs/granite/csrf/token.json" }
/0033 { /type "allow" /glob "* /bin/xfaforms/submitaction*" } # to enable AEM Forms submission

mohamedn4455443
January 3, 2022

Add a rule like this:

 

 /0002 { /type "allow" /method "POST" /url "/content/forms/af/generalformcs/generalform1/jcr:content/guideContainer/rootPanel/items/panel/items/summary.process.jsp" }     

 

and restart the Dispatcher. 


same issue:

csrf.js:263 POST https://10.11.0.120/content/forms/af/generalformcs/generalform1/jcr:content/guideContainer.af.dermis 403 (Forbidden)

 

csrf.js:263 POST https://10.11.0.120/content/forms/af/generalformcs/generalform1/jcr:content/guideContainer.af.submit.jsp 403 (Forbidden)

mohamedn4455443
mohamedn4455443AuthorAccepted solution
January 4, 2022

Solved by Allowing Sticky sessions

 

open dispatcher.any, and add the below lines:

 

#Allowing Sticky sessions
/stickyConnectionsFor "/content"

/stickyConnections {
/paths {
"/"
}
}