Fix a typo in the nginx CORS snippet.

This commit is contained in:
Andrea Dell'Amico 2017-07-22 15:19:44 +02:00
parent db61e24d4e
commit ee0c922ddf
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ if ($request_method = 'OPTIONS') {
} }
if ($request_method = 'POST') { if ($request_method = 'POST') {
{% if nginx_cors_limit_origin %} {% if nginx_cors_limit_origin %}
add_header 'Access-Control-Allow-Origin' "${{ nginx_cors_acl_origin }}"; add_header 'Access-Control-Allow-Origin' "{{ nginx_cors_acl_origin }}";
add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Credentials' 'true';
{% else %} {% else %}
add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Origin' '*';