"empty CSRF token - rejecting" when calling servlet (POST) from a browser
as above.
I am testing something on my local and I am getting the following errors in my logs when the browser tries to fetch some data from a servlet.
some info:
- I am using AEMaaCS jar as my local instance.
- I am login to my local author in another browser tab.
- I'm using the fetch Javascript function to call the servlet.
- When I visit http://localhost:4502/libs/granite/csrf/token.json, I can see the value of token.json
- I tried the same thing using postman (the only extra thing I did in postman is to pass admin/admin in basic auth) and I don't get the same issue.
- I don't get the same issue when I submit the form that's been published in AEMaaCS.
Any ideas? thanks!

