Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list
SOLVED

POST data to the Page from External Host

Avatar

Level 4

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

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

Avatar

Correct answer by
Community Advisor

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