thecore_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/cors_api_thecore.rb +10 -9
- data/lib/thecore_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81678c8efa882f31d0bf0368cede3b1b57e9d07d
|
4
|
+
data.tar.gz: 9ffc781ec1b269da76c5ae2add0c22637a208eae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7721a1316d09d5fbb3ffb949ff33a8b12c397055fa97c86294293f8685fa9311bb9732de9a2baad4a3cef652d99233296f7431b8510aebb51f44927112ac25
|
7
|
+
data.tar.gz: ce12e436d1fcd2387cebf1ab5a99b40706f67193ac16549acc0966cd68e9946389d7b0ededb2f4a4b860bb13822acb4d72e0b52383f961fc2e8a60774c3259df
|
@@ -1,15 +1,16 @@
|
|
1
1
|
# config/initializers/cors.rb
|
2
2
|
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
3
3
|
allow do
|
4
|
-
origins { |source, env|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
4
|
+
# origins { |source, env|
|
5
|
+
# # No settings => '*'
|
6
|
+
# allowed_origins = Settings.ns('api').allowed_origins
|
7
|
+
# return true if allowed_origins.blank?
|
8
|
+
# allowed_origins.split(",").each do |domain|
|
9
|
+
# return true if source.end_with?(domain.strip)
|
10
|
+
# end
|
11
|
+
# return false
|
12
|
+
# }
|
13
|
+
origins '*'
|
13
14
|
resource '*',
|
14
15
|
headers: :any,
|
15
16
|
methods: %i(get post put patch delete options head)
|
data/lib/thecore_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore
|