better_errors 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/better_errors/middleware.rb +2 -2
- data/lib/better_errors/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d3d72dd8ce0e7e2cca7766facffd1e6ae40a51f23f870683427b2e50bec4e2c
|
4
|
+
data.tar.gz: 648379df7f566ebe03c271a42777920bae0b778f412b58d05f65a4eebd9066e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c00de73b57d84b02f606bf8aca932ee54abd20a26ae4c8be0a77c57a93810e1483f9ef255ecf92beb4eb6b2573e3b870fa9a8891ea49951768627b02f0ae3852
|
7
|
+
data.tar.gz: 54172e86102ee07af71a12ae6e6dcda7d306bb85b0dc387d23ead5ec0c992d5e3372e56d2779bdad7370bed68e5d76c21cb7941083eba699ccc955045fb46941
|
@@ -40,7 +40,7 @@ module BetterErrors
|
|
40
40
|
allow_ip! "127.0.0.0/8"
|
41
41
|
allow_ip! "::1/128" rescue nil # windows ruby doesn't have ipv6 support
|
42
42
|
|
43
|
-
CSRF_TOKEN_COOKIE_NAME =
|
43
|
+
CSRF_TOKEN_COOKIE_NAME = "BetterErrors-#{VERSION}-CSRF-Token"
|
44
44
|
|
45
45
|
# A new instance of BetterErrors::Middleware
|
46
46
|
#
|
@@ -113,7 +113,7 @@ module BetterErrors
|
|
113
113
|
response = Rack::Response.new(content, status_code, { "Content-Type" => "text/#{type}; charset=utf-8" })
|
114
114
|
|
115
115
|
unless request.cookies[CSRF_TOKEN_COOKIE_NAME]
|
116
|
-
response.set_cookie(CSRF_TOKEN_COOKIE_NAME, value: csrf_token, httponly: true, same_site: :strict)
|
116
|
+
response.set_cookie(CSRF_TOKEN_COOKIE_NAME, value: csrf_token, path: "/", httponly: true, same_site: :strict)
|
117
117
|
end
|
118
118
|
|
119
119
|
# In older versions of Rack, the body returned here is actually a Rack::BodyProxy which seems to be a bug.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: better_errors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charlie Somerville
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|