Miss any of our Open RFC calls?Watch the recordings here! »

ember-django-csrf

0.1.0 • Public • Published

Ember Django CSRF

Build Status Code Climate Dependency Status

Add Django based CSRF protection to your Ember application.

This addon requires a meta tag named X-CSRFToken provided within index.html file. You can use Django Ember Index as a provider of the index.html file.

Installation

  • ember install ember-django-csrf

The CSRF protection is enabled by default on every AJAX request with X-CSRFToken header. You can specify an URL pattern in config/environment.js to protect only a subset of requests.

 
var ENV = {
  ...
  django: {
    csrf: '^api'
  }
};

License

Ember Django CSRF is available under the MIT license. See the LICENSE file for more info.

Install

npm i ember-django-csrf

DownloadsWeekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar