8000 GitHub - toranb/ember-cli-thymeleaf-csrf: an ember addon that adds the csrf meta tags for thymeleaf
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

toranb/ember-cli-thymeleaf-csrf

Repository files navigation

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.

About

an ember addon that adds the csrf meta tags for thymeleaf

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0