POST data to the Page from External Host | Community
Skip to main content
Level 4
Jan 5, 2022 2:17 PM UTC
Solved

POST data to the Page from External Host

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.
Shashi_Mulugu
Shashi_MuluguAccepted solution
New Participant
Jan 5, 2022 5:34 PM UTC

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

2 replies

Shashi_Mulugu
Shashi_MuluguAccepted solution
New Participant
Jan 5, 2022 5:34 PM UTC

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

Translate
Level 4
Jan 18, 2022 4:33 PM UTC

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

Translate