External Redirect to AEM is returning 403 | Community
Skip to main content
Level 2
Jul 17, 2020 2:11 PM UTC

External Redirect to AEM is returning 403

I am getting redirected from an payment gateway page to AEM page. However i am getting 403 error when i redirect.

Tried to redirect to we-retail page as well but the same issue persists.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

8 replies

Asutosh_Jena_
New Participant
Jul 18, 2020 4:38 AM UTC

@sachindey11 Are you trying to post something while redirecting or it's just a 301/302 redirect to a static page in AEM?

Translate
ArpitVarshney
New Participant
Jul 17, 2020 6:34 PM UTC

Hi @sachindey11 

If you are working on your local machine and have created a sling servlet to make post request to local AEM Server , you may be getting 403 Error Code : Forbidden
This issue is due to CSRF Filter blocking POST Requests.

You can unblock this via OSGi Configuration. You shouldn't be doing it on production instances.

  1. Go to http://localhost:4502/system/console/configMgr
  2. Find Adobe Granite CSRF Filter 
  3. Remove POST from Filter Methods
  4. Save and Test the servlet again.



Translate
Level 2
Jul 17, 2020 6:42 PM UTC
Thanks Arpit. I have already done that but still i get the below error...Status 500 Message java.lang.IllegalArgumentException: Value for key response-signature-base64 can't be put into node:
Translate
arunpatidar
New Participant
Jul 17, 2020 2:27 PM UTC

Hi,

Is this a post request or a get request?

Translate
Arun Patidar
Level 2
Jul 17, 2020 2:33 PM UTC
Its a post request. Payment Gateways frame is injected into AEM page and then we redirect to bank page and back to AEM page.
Translate