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.
@@ -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'}
@@ -55,7 +55,7 @@ module AssetOSS
55
55
 
56
56
  headers = {
57
57
  :content_type => asset.mime_type,
58
- }.merge(asset.cache_headers)
58
+ }.merge(asset.cache_headers, asset.cross_origin_header)
59
59
 
60
60
  asset.replace_css_images!(:prefix => oss_prefix) if asset.css?
61
61
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cb_asset_oss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1379316800
4
+ version: 0.4.1380093321
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: