cb_asset_oss 0.4.1379316800 → 0.4.1380093321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/cb_asset_oss/asset.rb +4 -0
- data/lib/cb_asset_oss/backend/oss.rb +1 -1
- metadata +1 -1
data/lib/cb_asset_oss/asset.rb
CHANGED
@@ -145,6 +145,10 @@ module AssetOSS
|
|
145
145
|
def cache_headers
|
146
146
|
{'Expires' => expiry_date, 'Cache-Control' => 'public'} # 1 year expiry
|
147
147
|
end
|
148
|
+
|
149
|
+
def cross_origin_header
|
150
|
+
{ 'x-oss-meta-Access-Control-Allow-Origin' => '*'}
|
151
|
+
end
|
148
152
|
|
149
153
|
def gzip_headers
|
150
154
|
{'Content-Encoding' => 'gzip', 'Vary' => 'Accept-Encoding'}
|