openstax_api 5.5.1 → 5.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/openstax/api/v1/api_controller.rb +1 -0
- data/lib/openstax/api/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: 73064620ebb2ca31448e2102d6709221c3aabd87
|
4
|
+
data.tar.gz: a2732bd77bc14cc6ba0afdbc1af36576e3381ea6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cbab26093a9b74ee0d993edace5ca4d28a1464e019f6bb7a0e122811c6f9b9b58d811d2fa4e857bcce74bacd4ae8dc5d27a3f5d3fc3a63f40809ae9b31d93d1
|
7
|
+
data.tar.gz: 629d8624fad6197eade88d97395219163e17473956116330951eed2aeb6ef8321fb56ec369a384e7d819836cb7748bc84013755c6c95f52e69c859960d2193e2
|
@@ -75,6 +75,7 @@ module OpenStax
|
|
75
75
|
def set_cors_preflight_headers
|
76
76
|
headers['Access-Control-Allow-Origin'] = '*'
|
77
77
|
headers['Access-Control-Allow-Methods'] = 'GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS'
|
78
|
+
headers['Access-Control-Allow-Headers'] = 'X-Requested-With, X-Prototype-Version, Token'
|
78
79
|
headers['Access-Control-Max-Age'] = '86400'
|
79
80
|
end
|
80
81
|
|
data/lib/openstax/api/version.rb
CHANGED