model_driven_api 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ba0922c4a172c2281c46307ba065d30ef787167503aeaa468731c939e277904
4
- data.tar.gz: 9ec7f34e99684acf9f978d6fed80f8cd14cf82ae41a06366b4ee9b6ce89232c8
3
+ metadata.gz: 1822139deff80353dbae231afd40ed1397d7d4cf52da33e7bfc2d1c037cee751
4
+ data.tar.gz: 1545317f8c87c9446a3f6cce825468e7bab53754a6031e012c9b2c16f4850bea
5
5
  SHA512:
6
- metadata.gz: d16adf2aacce296e357c96ac4ca923850c9bb106f996bcde912d504d0df3991d7c52963fadc928fd08f86ab64f2e3aa1bee1d1c6eec243643f7854ace4495f44
7
- data.tar.gz: 4333524807337ded6bb5eba120b558e6c342914450287a3fcd7867f82486c693467cbf5ebf77fa884a089a5c0b755ba6bf9a7026253949662873cc73fa8e6a51
6
+ metadata.gz: 61f7ee38ad2620dcecbc23e00508a5238c7402408fa10a7f5a8925e3939d030b2cb68f330acaab36497cd9ea329bc20da5f6df1327ea4b2986e4ed350ac7d8c4
7
+ data.tar.gz: 9e7b861687ee4e4e798f2fc0d95f925aa06e0d4349d579eb6b6a194a2177bc7d902f9ca630d24fa797b1cfb75a3627e6895a54bf15a792698cfacaa7a3b7fb56
@@ -1,21 +1,14 @@
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"
2
+ # config/initializers/cors_api_thecore.rb
14
3
  Rails.application.config.middleware.insert_before 0, Rack::Cors do
15
- # Allow Everything
16
- # Please override to your specific security needs in the actual application
4
+ # # Allow Everything
5
+ # # Please override to your specific security needs in the actual application
17
6
  allow do
18
7
  origins '*'
19
- resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options, :head]
8
+ resource '*',
9
+ headers: %w(app lang enc-data user-data session-id x-requested-with content-type origin authorization accept client-security-token Accept Authorization Cache-Control Content-Type DNT If-Modified-Since Keep-Alive Origin User-Agent X-Requested-With Token),
10
+ methods: [:get, :post, :put, :patch, :delete, :options, :head],
11
+ expose: %w(authorization Authorization Content-Length Token),
12
+ max_age: 600
20
13
  end
21
- end
14
+ 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.6
4
+ version: 3.0.7
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-02-12 00:00:00.000000000 Z
11
+ date: 2023-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore_backend_commons