Access denied for Sling servlet ajax call via htl in Touch ui | Community
Skip to main content
sai111
Level 2
January 29, 2019
Solved

Access denied for Sling servlet ajax call via htl in Touch ui

  • January 29, 2019
  • 2 replies
  • 2493 views

Hi Everyone,

I have a ajax call (type =post)to Sling servlet via htl for a component , In classic ui Ajax call is working fine,  when I do the same call from Touch ui console, its showing me Invalid url access denied for the servlet path, am I missing something over here , did anyone face this ,Can someone please help me. Thanks in advance

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 sai111

It's happening because of post method set up in this config com.adobe.granite.csrf.impl.CSRFFilter, removing post from this filter resolved this currently

2 replies

Feike_Visser1
Adobe Employee
Adobe Employee
January 29, 2019

can you share some code?

sai111
sai111AuthorAccepted solution
Level 2
January 29, 2019

It's happening because of post method set up in this config com.adobe.granite.csrf.impl.CSRFFilter, removing post from this filter resolved this currently