Sha256: 54e781cdbd5845bda5638699a2e1658944dc2d366ac18fa2e732ce5c5a0f40a5

Contents?: true

Size: 199 Bytes

Versions: 60

Compression:

Stored size: 199 Bytes

Contents

set $cors "";

if ($http_origin ~* (.*{{asset_cors_domain}})) {
    set $cors "true";
}

location /assets {
  if ($cors = "true") {
    add_header 'Access-Control-Allow-Origin' "$http_origin";
  }
}

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
subspace-3.0.12 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.11 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.10 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.9 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.6 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.5 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.4 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.3 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.2 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.0 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.10 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-3.0.0.rc1 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.9 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.8 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.7 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.6 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.5 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.4 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.3 ansible/roles/nginx-rails/templates/_asset_cors.conf
subspace-2.5.2 ansible/roles/nginx-rails/templates/_asset_cors.conf