net.adamcin.recap icon indicating copy to clipboard operation
net.adamcin.recap copied to clipboard

Issue with AEM 6.1 - CSRF token not present

Open kunalgaba opened this issue 9 years ago • 6 comments

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.

kunalgaba avatar Jul 08 '15 18:07 kunalgaba

I added granite.csrf.standalone dependency in /libs/recap/clientlibs/recap and it does the job!

adolfodepazvela avatar Oct 19 '15 18:10 adolfodepazvela

Any progress on this? This issue is currently preventing me from using this on 6.1 projects

miguelalvarado avatar Nov 24 '15 01:11 miguelalvarado

@adolfodepazvela can you create a branch and a pull request with the fix please?

miguelalvarado avatar Nov 24 '15 01:11 miguelalvarado

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 .

adolfodepazvela avatar Nov 24 '15 01:11 adolfodepazvela

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

laniela avatar Dec 17 '15 16:12 laniela

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)

yogesh-kulkarni avatar Sep 16 '16 21:09 yogesh-kulkarni