Hi all,
I am using the Ajax call the post servlet and is getting the 403 forbidden error in the aurhor instance.
In the AEM 6.1, I can call "/libs/granite/csrf/token.json" to get the token and the set the this token to the header of the Ajax. Then Ajax can successfully call the post servlet.
headers: {
"X-CSRFToken": token,
"CSRF-Token": token
}
But in the AEM 6.5, even I have set the header, but still getting the 403 error. Does anyone know how to fix it in the AEM 6.5.
BTW : I don't want to change OSGI, I just want a way to change the code of the JS and HTML to fix it.
Thanks,
Forrest