Skip to content

Commit

Permalink
Add CorsMaxAge config to nginx template
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Jan 9, 2018
1 parent 357499e commit 7b8362d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ stream {
{{ if $cors.CorsAllowCredentials }} add_header 'Access-Control-Allow-Credentials' '{{ $cors.CorsAllowCredentials }}' always; {{ end }}
add_header 'Access-Control-Allow-Methods' '{{ $cors.CorsAllowMethods }}' always;
add_header 'Access-Control-Allow-Headers' '{{ $cors.CorsAllowHeaders }}' always;
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Access-Control-Max-Age' {{ $cors.CorsMaxAge }};
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
Expand Down

0 comments on commit 7b8362d

Please sign in to comment.