apicasso 0.2.2 → 0.2.3

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
  SHA1:
3
- metadata.gz: 4da5cf7cdf70577aed43029b6a37a7b8ac8bc12c
4
- data.tar.gz: 7f15d79c88fa86c7f0516162124a09b6cf054aea
3
+ metadata.gz: b70a36e72175b486c4105ccbe4dcf0aab366ca9a
4
+ data.tar.gz: 4d084641ad22f0c634d02dec683a07f589af1316
5
5
  SHA512:
6
- metadata.gz: d0e03e999fb85197ce9d8d9214e7810101b76377cbde9224ac13d8a9355c90595c4df42ebb7405a3d6e59212d6321c412b803c460cc4ec26c907b91a9e8bddeb
7
- data.tar.gz: 6cf2ea573ffc12f57cba2f0517ac61a38339d9167aec6b0475bec79972a69f162b54376a722dd759d97a4d41fc6b6c669936eb3b5d9e61b00f7eab257ef204bc
6
+ metadata.gz: 77a8bafa40d464f43aa08587fde2d9f141459ba7e532798cdfccf4b21b099de6b2386762ad4465f7f6aecd20766aaf27e0d920ceb9066d44f3d19bf941fc0817
7
+ data.tar.gz: e5631dfebd6ce56b25210542acaea70ae9918c409b5af22beb10943d4c517f2af6d6a37557bb49522a7403fc3b9c3ccbd58d5713dc752c7ee85a1388b9963944
@@ -102,8 +102,9 @@ module Apicasso
102
102
  end
103
103
 
104
104
  def set_access_control_headers
105
- response.headers['Access-Control-Allow-Origin'] = '*'
105
+ response.headers['Access-Control-Allow-Origin'] = request.headers["Origin"]
106
106
  response.headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, PATCH, DELETE, OPTIONS'
107
+ response.headers['Access-Control-Allow-Credentials'] = 'true'
107
108
  response.headers['Access-Control-Allow-Headers'] = 'Origin, Content-Type, Accept, Authorization, Token, Auth-Token, Email, X-User-Token, X-User-Email'
108
109
  response.headers['Access-Control-Max-Age'] = '1728000'
109
110
  end
@@ -1,3 +1,3 @@
1
1
  module Apicasso
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apicasso
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Bellincanta