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 +4 -4
- data/app/controllers/apicasso/application_controller.rb +1 -1
- data/lib/apicasso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d793d3895f43c556acbb7a8848c2f0b984c3a96e876116fae0547c9b7a894cad
|
4
|
+
data.tar.gz: 32ec11db65734c1be84fba6278984f8ce733eaa9d685cb5b3fd35755116148a1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/apicasso/version.rb
CHANGED