Getting 405 error for post request | Community
Skip to main content
June 28, 2022
Solved

Getting 405 error for post request

  • June 28, 2022
  • 2 replies
  • 1288 views

Hi Team,

 

When I am trying to create a site through post request in postman, I am getting "405 method not allowed". I used below key value pair in "x-www-form-urlencoded" in postman:-

srcPath:-/apps/msm/we-retail/blueprintconfigs/we-retail-screens

destPath:-/content/we-retail/us/en/experience

./jcr:title-aksh03

 

Kindly suggest on this issue.

 

Thanks and regards,

Akshay Shukla

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 vanegi

Hi @akshay_shukla,

Please confirm if "Apache Sling Referrer Filter" is configured like below:

  1. Enable allow empty
  2. Remove the POST method from filters

In OSGI configurations (http://localhost:4502/system/console/configMgr), locate “Apache Sling Referrer Filter”. Enable the allow empty property, and remove the post method from filters property.

Secondly, in OSGI configurations (http://localhost:4502/system/console/configMgr), locate “Adobe Granite CSRF Filter”. Remove the post method from filters property.

After making configurations to the two OSGI configurations, you should be able to make a POST request from your HTTP REST Client to your AEM instance.

Thanks!!

2 replies

arunpatidar
Community Advisor
Community Advisor
June 28, 2022
vanegi
Adobe Employee
vanegiAdobe EmployeeAccepted solution
Adobe Employee
June 28, 2022

Hi @akshay_shukla,

Please confirm if "Apache Sling Referrer Filter" is configured like below:

  1. Enable allow empty
  2. Remove the POST method from filters

In OSGI configurations (http://localhost:4502/system/console/configMgr), locate “Apache Sling Referrer Filter”. Enable the allow empty property, and remove the post method from filters property.

Secondly, in OSGI configurations (http://localhost:4502/system/console/configMgr), locate “Adobe Granite CSRF Filter”. Remove the post method from filters property.

After making configurations to the two OSGI configurations, you should be able to make a POST request from your HTTP REST Client to your AEM instance.

Thanks!!