rack-cors 2.0.2 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +5 -3
- data/lib/rack/cors/version.rb +1 -1
- metadata +30 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ec00fa74e332230fa5a169a7de9b04f09cdc062653f1cc09ca05806fb25152f
|
4
|
+
data.tar.gz: a628117ab53ce1ec3ade0bef0f073d5edc4ce7a908122a741534f64ff4e90a3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f3ffafae36ad8e08a5d5f4347628ef6efaf9dcd669d008e1ea4022998e6d36bef652c9b99fc5c89d36af10cfbc508269154df722ca7629831642206ee3b078c
|
7
|
+
data.tar.gz: f849c6fa986e0e601dc18532591fcde9c03557ee2fb1ecbf2e19f518e7ec0824a8d665c4c8764872fccbd674d754c7453fc333eb72c93d27c586b4ebf5c1b913
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
+
## 3.0.0 - 2025-05-16
|
5
|
+
### Changed
|
6
|
+
- Update Rack dependency to >= 3.0.14
|
7
|
+
- Remove support for Ruby 2.3
|
8
|
+
- Add logger as explicit dependency
|
9
|
+
|
4
10
|
## 2.0.2 - 2024-03-04
|
5
11
|
### Changed
|
6
12
|
- Fix file permission issues with 2.0.1 release
|
13
|
+
- Security: Fixes CVE-2024-27456, GHSA-785g-282q-pwvx
|
7
14
|
|
8
15
|
## 2.0.1 - 2023-02-17
|
9
16
|
### Changed
|
data/README.md
CHANGED
@@ -107,7 +107,9 @@ A Resource path can be specified as exact string match (`/path/to/file.txt`) or
|
|
107
107
|
|
108
108
|
### Origin Matching
|
109
109
|
|
110
|
-
When specifying an origin, make sure that it does not have a trailing slash.
|
110
|
+
* When specifying an origin, make sure that it does not have a trailing slash.
|
111
|
+
|
112
|
+
* When specifying an HTTP origin that uses the scheme's default port (e.g. `http://example.test:80`), some clients may not strip the port which could result in unexpected blocked requests (additional context [here](https://github.com/request/request/pull/2904)).
|
111
113
|
|
112
114
|
### Testing Postman and/or cURL
|
113
115
|
|
@@ -129,13 +131,13 @@ Here are some scenarios where incorrect positioning have created issues:
|
|
129
131
|
You can run the following command to see what the middleware stack looks like:
|
130
132
|
|
131
133
|
```bash
|
132
|
-
bundle exec
|
134
|
+
bundle exec rails middleware
|
133
135
|
```
|
134
136
|
|
135
137
|
Note that the middleware stack is different in production. For example, the `ActionDispatch::Static` middleware will not be part of the stack if `config.serve_static_assets = false`. You can run this to see what your middleware stack looks like in production:
|
136
138
|
|
137
139
|
```bash
|
138
|
-
RAILS_ENV=production bundle exec
|
140
|
+
RAILS_ENV=production bundle exec rails middleware
|
139
141
|
```
|
140
142
|
|
141
143
|
### Serving static files
|
data/lib/rack/cors/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-cors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Calvin Yu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: logger
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rack
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
16
30
|
requirements:
|
17
31
|
- - ">="
|
18
32
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
33
|
+
version: 3.0.14
|
20
34
|
type: :runtime
|
21
35
|
prerelease: false
|
22
36
|
version_requirements: !ruby/object:Gem::Requirement
|
23
37
|
requirements:
|
24
38
|
- - ">="
|
25
39
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
40
|
+
version: 3.0.14
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -48,30 +62,30 @@ dependencies:
|
|
48
62
|
name: minitest
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
50
64
|
requirements:
|
51
|
-
- - "
|
65
|
+
- - ">="
|
52
66
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
67
|
+
version: '0'
|
54
68
|
type: :development
|
55
69
|
prerelease: false
|
56
70
|
version_requirements: !ruby/object:Gem::Requirement
|
57
71
|
requirements:
|
58
|
-
- - "
|
72
|
+
- - ">="
|
59
73
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
74
|
+
version: '0'
|
61
75
|
- !ruby/object:Gem::Dependency
|
62
76
|
name: mocha
|
63
77
|
requirement: !ruby/object:Gem::Requirement
|
64
78
|
requirements:
|
65
|
-
- - "
|
79
|
+
- - ">="
|
66
80
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
81
|
+
version: '0'
|
68
82
|
type: :development
|
69
83
|
prerelease: false
|
70
84
|
version_requirements: !ruby/object:Gem::Requirement
|
71
85
|
requirements:
|
72
|
-
- - "
|
86
|
+
- - ">="
|
73
87
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
88
|
+
version: '0'
|
75
89
|
- !ruby/object:Gem::Dependency
|
76
90
|
name: pry
|
77
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +162,9 @@ files:
|
|
148
162
|
homepage: https://github.com/cyu/rack-cors
|
149
163
|
licenses:
|
150
164
|
- MIT
|
151
|
-
metadata:
|
165
|
+
metadata:
|
166
|
+
changelog_uri: https://github.com/cyu/rack-cors/blob/master/CHANGELOG.md
|
167
|
+
funding_uri: https://github.com/sponsors/cyu
|
152
168
|
post_install_message:
|
153
169
|
rdoc_options: []
|
154
170
|
require_paths:
|
@@ -164,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
180
|
- !ruby/object:Gem::Version
|
165
181
|
version: '0'
|
166
182
|
requirements: []
|
167
|
-
rubygems_version: 3.
|
183
|
+
rubygems_version: 3.4.19
|
168
184
|
signing_key:
|
169
185
|
specification_version: 4
|
170
186
|
summary: Middleware for enabling Cross-Origin Resource Sharing in Rack apps
|