POST data to the Page from External Host | Community
Skip to main content
Level 4
January 5, 2022
Solved

POST data to the Page from External Host

  • January 5, 2022
  • 1 reply
  • 911 views

we are logging from the external website, then that website post the login details to the /content/XXXX.html.

I am getting those details using

1. http://localhost:4502/system/console/configMgr

2. Search for 'Apache Sling Referrer Filter'

3. Remove POST method from the filter. Then you can call your POST method anywhere.

4. Select “Allow Empty”

 

Is there a way not to delete the POST Method in the filter and deselect Allow Empty.

I have entered the Host origin in the Allow host.

 

Still I am seeing forbidden issue.

STATUS:MESSAGE:SERVLET:

403
Forbidden
org.apache.felix.http.base.internal.dispatch.DispatcherServlet-4f516331

 

 

 

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 Shashi_Mulugu

@kbitra1998 you need to update Referrer filter and CSRF filter to make POST call work.

 

Refer below link for steps:

https://taylor.callsen.me/security-and-java-servlets-in-aem-6-1/

1 reply

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
January 5, 2022

@kbitra1998 you need to update Referrer filter and CSRF filter to make POST call work.

 

Refer below link for steps:

https://taylor.callsen.me/security-and-java-servlets-in-aem-6-1/

Level 4
January 18, 2022

@shashi_mulugu  Thanks a lot, It's working fine.