thesis_cloudfront 0.1.9 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3a2935355f22f904c01cb1d5334579bd70725ea4fc77ed3317bde209a5e2e47
|
4
|
+
data.tar.gz: aa46b3d66aaab086ca5b0ebae1f6a640208a8832bff2bf86ec16e16d433bac7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb56fc15d9c745fdc9257c66a9465a8db615d34049777e2c89ace38ed3fd1c822ed6a60170498e445e8c51ca7e23622af68822557b94c4d93a4e7f91b0f0f285
|
7
|
+
data.tar.gz: 58907e162be1a1ad87246f3329a7e572cd38a22ed2b665cb81240e537d220faaa6368cc12f1b04ac9ad78ae1541705ffd76f9cd08deff2a99f63de87ee4ab747
|
@@ -13,12 +13,12 @@ module ThesisCloudfront
|
|
13
13
|
create_file "config/initializers/rack_cors.rb" do
|
14
14
|
["Rails.application.config.middleware.insert_before 0, Rack::Cors do",
|
15
15
|
" allow do",
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
16
|
+
" origins [",
|
17
|
+
" /https:\\/\\/#{heroku_app_name}.herokuapp.com/,",
|
18
|
+
" /http:\\/\\/#{heroku_app_name}.herokuapp.com/,",
|
19
|
+
" /https:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/,",
|
20
|
+
" /http:\\/\\/#{heroku_app_name}-pr-[0-9]+.herokuapp.com/",
|
21
|
+
" ]",
|
22
22
|
" resource '/assets/*', headers: :any, methods: [:get, :head, :options]",
|
23
23
|
" end",
|
24
24
|
"end"].join("\n")
|