net.adamcin.recap
net.adamcin.recap copied to clipboard
Issue with AEM 6.1 - CSRF token not present
AEM 6.1 does not allow POST requests if CSRF token is not present in the request. Because of this we can't use recap to save new addresses.
I added granite.csrf.standalone dependency in /libs/recap/clientlibs/recap and it does the job!
Any progress on this? This issue is currently preventing me from using this on 6.1 projects
@adolfodepazvela can you create a branch and a pull request with the fix please?
absolutly
On Monday, November 23, 2015, miguel [email protected] wrote:
@adolfodepazvela https://github.com/adolfodepazvela can you create a branch and a pull request with the fix please?
— Reply to this email directly or view it on GitHub https://github.com/adamcin/net.adamcin.recap/issues/10#issuecomment-159122473 .
You were right Adolfo, adding the granite.csrf.standalone dependency to the /libs/recap/clientlibs/recap node in crx/de work like a charm for me to.
Thanks
-Alain
still not able to use it on AEM 6.1. I see call being made for /libs/granite/csrf/token.json. Getting this error after submit; net.adamcin.recap.api.RecapSessionException: RepositoryException while preparing path: /content/audiusa/en/myaudi at net.adamcin.recap.impl.RecapSessionImpl.sync(RecapSessionImpl.java:251)