ember-cli-thymeleaf-csrf

v0.3.0
An ember-cli addon to include a CSRF token in every ajax request using thymeleaf templates
ember-addon thymeleaf ember-cli spring ember java

This addon will dynamically add the csrf headers for thymeleaf

In development/test/server builds you will get the following

  <meta name="_csrf_header" content="abc" />
  <meta name="_csrf" content="abc" />

In production you will get something that your thymeleaf templates can inject with

  <meta name="_csrf_header" th:content="${_csrf.headerName}" />
  <meta name="_csrf" th:content="${_csrf.token}" />

There is an initializer that will add an ajaxPrefilter to include the CSRF Header in every request.

npm i ember-cli-thymeleaf-csrf

Metadata

  • MIT
  • >= 4
  • Toran Billups
  • released 4/11/2017

Downloads