Not able to access AEM page using postman GET request | Community
Skip to main content
pradeepd1320668
Level 2
Aug 19, 2020 7:36 AM UTC
Solved

Not able to access AEM page using postman GET request

Hi All,

 

I am trying to access AEM page using GET request via Postman tool. I have enabled anonymous access in 'Apache Sling Auhentication Service' still it is not working. Page is opening fine through browser.

Getting below error when accessing via Postman

19.08.2020 12:58:48.556 *INFO* [0:0:0:0:0:0:0:1 [1597822128552] GET /content/test/en/page.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /content/test/en/page.html not found

 

Any help is much appreciated. 

 

Thanks,

Pradeep
 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Nikhil-Kumar
Nikhil-KumarAccepted solution
New Participant
Aug 19, 2020 12:53 PM UTC

@pradeepd1320668  - Please check for the Authentication of the AEM server in your Postman.
Refer the attachment below: 

4 replies

SundeepKatepally
New Participant
Aug 20, 2020 3:45 AM UTC

 

You need to do 2 things

Option1  -  Anonymous Access 

1) Allow anonymous user in the config "sling authentication service" config.

2) Give read permisions on the content to anonymous user.

 

Option2 - In Post man use Basic authentication. ,where you can give username and password.

 

Option1 is not recommended as you are almost giving the read access without login in author.

 

 

Translate
pradeepd1320668
Level 2
Aug 20, 2020 12:24 PM UTC

Thank you. It worked through postman, i need to implement same in react. I believe there also it will work.

Translate
Nikhil-Kumar
Nikhil-KumarAccepted solution
New Participant
Aug 19, 2020 12:53 PM UTC

@pradeepd1320668  - Please check for the Authentication of the AEM server in your Postman.
Refer the attachment below: 

Translate
pradeepd1320668
Level 2
Aug 20, 2020 12:23 PM UTC
It worked. Thank you.
Translate