if you are not using cq provided jQuery you must add granite.csrf.standalone as a dependency.
if you don't want to use the above client libs as a dependency. you can pass 'CSRF-Token' as header property for async XHR request. Call to '/libs/granite/csrf/token.json' will give 'CSRF-Token' value.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.