model_driven_api 3.0.6 → 3.0.8
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 +6 -14
- 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: 3864ce5805e5cd1f1af464d58be0627254d1d202a616418dc28016b70ba2cd0e
|
4
|
+
data.tar.gz: 1be570ff897f302a0b44512189adb118516c960bdf7dbc3559e75b9befa65907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 708bd2e26db01750fb9b6b748892e6ca7cf1b7513945c46f6745bea79dcb1e3a0bf8a2c6d70f22b16b02ac7b28e4763d53fb07cbe65c84012c1140052b143832
|
7
|
+
data.tar.gz: e29c297ca1a41ec291ab66b9ddde67e76b068888b8db147945bf4e2d825bee641cd424017af4b442948c57522f183443f5df19b6e0d79fb9076dd8bdb9357b15
|
@@ -1,21 +1,13 @@
|
|
1
|
-
# config/initializers/cors.rb
|
2
|
-
# Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
3
|
-
# allow do
|
4
|
-
# origins '*'
|
5
|
-
# resource '*',
|
6
|
-
# headers: %w(Token),
|
7
|
-
# methods: :any,
|
8
|
-
# expose: %w(Token),
|
9
|
-
# max_age: 600
|
10
|
-
# end
|
11
|
-
# end
|
12
|
-
|
13
1
|
puts "Loading CORS"
|
14
2
|
Rails.application.config.middleware.insert_before 0, Rack::Cors do
|
15
3
|
# Allow Everything
|
16
4
|
# Please override to your specific security needs in the actual application
|
17
5
|
allow do
|
18
6
|
origins '*'
|
19
|
-
resource '*',
|
7
|
+
resource '*',
|
8
|
+
headers: %w(accept app authorization cache-control client-security-token content-type dnt enc-data if-modified-since keep-alive lang origin session-id token user-agent user-data x-requested-with),
|
9
|
+
methods: [:get, :post, :put, :patch, :delete, :options, :head],
|
10
|
+
expose: %w(authorization content-length token),
|
11
|
+
max_age: 600
|
20
12
|
end
|
21
|
-
end
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: model_driven_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_backend_commons
|