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