angular_rails_csrf 4.5.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -4
- data/lib/angular_rails_csrf/version.rb +1 -1
- data/test/dummy/log/test.log +56 -2136
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777a87b5a6709b3c193f4205d7327790efa17a1a1d3686a8e49fc69b03e62e1b
|
4
|
+
data.tar.gz: b693aa26b63bc1772a8b14728414d3922e9a2c2a33be088f4f123ca06885c58a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0a0afe2adc0f5dd08d95c7776f219101a659e3ba4ad1ba4abc4392a5a8f6e70cb5c957174c443266665348be35d9a33936ec2b1aefa2abb6bf0cd7558933e72
|
7
|
+
data.tar.gz: 5bba0256727b1dd432178d5fe4405ae11d4591e2be1fee0d13ac9c4bdfe29108040b2247a3f7fa80d3f0d6c43a7e426ab47490db521b1f1ec659625ef397a18c
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
## AngularJS-style CSRF Protection for Rails
|
2
2
|
|
3
|
-
|
4
|
-
[![Build Status](https://travis-ci.
|
3
|
+
![Gem](https://img.shields.io/gem/v/angular_rails_csrf)
|
4
|
+
[![Build Status](https://travis-ci.com/jsanders/angular_rails_csrf.svg?branch=master)](https://travis-ci.com/jsanders/angular_rails_csrf)
|
5
5
|
[![Test Coverage](https://codecov.io/gh/jsanders/angular_rails_csrf/graph/badge.svg)](https://codecov.io/gh/jsanders/angular_rails_csrf)
|
6
|
+
![Downloads total](https://img.shields.io/gem/dt/angular_rails_csrf)
|
6
7
|
|
7
8
|
The AngularJS [ng.$http](http://docs.angularjs.org/api/ng.$http) service has built-in CSRF protection. By default, it looks for a cookie named `XSRF-TOKEN` and, if found, writes its value into an `X-XSRF-TOKEN` header, which the server compares with the CSRF token saved in the user's session.
|
8
9
|
|
@@ -16,11 +17,15 @@ Check [version compatibility](https://github.com/jsanders/angular_rails_csrf/wik
|
|
16
17
|
|
17
18
|
Add this line to your application's *Gemfile*:
|
18
19
|
|
19
|
-
|
20
|
+
```ruby
|
21
|
+
gem 'angular_rails_csrf'
|
22
|
+
```
|
20
23
|
|
21
24
|
And then execute:
|
22
25
|
|
23
|
-
|
26
|
+
```console
|
27
|
+
$ bundle
|
28
|
+
```
|
24
29
|
|
25
30
|
That's it!
|
26
31
|
|