apicasso 0.4.7 → 0.4.8

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: cf4487870952607136a6a321524093ee1f0e0cd02935710110d4f5e94977b3be
4
- data.tar.gz: 17633533e5faad631e27b8d0e3d6c169a86163ff5328da5d0d6cab61aabb88f7
3
+ metadata.gz: d793d3895f43c556acbb7a8848c2f0b984c3a96e876116fae0547c9b7a894cad
4
+ data.tar.gz: 32ec11db65734c1be84fba6278984f8ce733eaa9d685cb5b3fd35755116148a1
5
5
  SHA512:
6
- metadata.gz: c036c58d2a4d9f1102cf47ca3d1125bbb5accbb6c69fcb583c82b7891c1801a6d68c55bfad3749e59f870c5608b48a00b1ead41b0c06c8dda60ba101785ea5d1
7
- data.tar.gz: 22b512d38ff47b026bc0ea18c3173ce96c6d228e7623e5c2d61116d1450885a93bc19e348f97b0b3cc7f40af749d21c4487735d7996fd0d4bd6be2d991eb0f90
6
+ metadata.gz: '018fa01df7bc29b1dd1538d5d9f3817273b6ede668e38071229d590533832232a1a7bbfc2f94080e18e2ff39558ee72a094203a6ed46a3db3dd1415021afe526'
7
+ data.tar.gz: d2bd141482c7a9676f98ac0544264a18c04fd5e1ee8f453cad3290f61efdec752696412444a74c99010130fab11685e77e214094d15f7b28352134474147c98d
@@ -163,7 +163,7 @@ module Apicasso
163
163
 
164
164
  # A method to allow origin customizing through method overriding
165
165
  def allow_origin
166
- request.headers['Referer'] || request.headers['Origin'] || '*'
166
+ request.protocol + URI(request.headers['Referer']).host || request.headers['Origin'] || '*'
167
167
  end
168
168
 
169
169
  # Checks if current request is a CORS preflight check
@@ -1,3 +1,3 @@
1
1
  module Apicasso
2
- VERSION = '0.4.7'.freeze
2
+ VERSION = '0.4.8'.freeze
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.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Bellincanta